Skip to content

Commit 33d9cd2

Browse files
committed
patch fix
1 parent 4a0bc54 commit 33d9cd2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tikzplotlib/_patch.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,9 @@ def ensure_list(x):
8989

9090
paths = obj.get_paths()
9191
for path, ec, fc, ls, w, t, off in zip_modulo(paths, ecs, fcs, lss, ws, ts, offs):
92-
if t is None:
93-
t = mpl.transforms.IdentityTransform()
92+
if t is not None:
93+
path = path.transformed(mpl.transforms.Affine2D(t).translate(*off))
9494

95-
path = path.transformed(mpl.transforms.Affine2D(t).translate(*off))
9695
data, draw_options = mypath.get_draw_options(data, obj, ec, fc, ls, w)
9796
data, cont, draw_options, is_area = mypath.draw_path(
9897
data, path, draw_options=draw_options

0 commit comments

Comments
 (0)