Skip to content

Commit 05d1080

Browse files
committed
Fix 'misspelled' transform variable
The full word `transform` fits, so there's no need to abbreviate.
1 parent 6c3412b commit 05d1080

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

examples/misc/demo_agg_filter.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,9 @@ def drop_shadow_line(ax):
213213
shadow.update_from(l)
214214

215215
# offset transform
216-
ot = mtransforms.offset_copy(l.get_transform(), ax.figure,
217-
x=4.0, y=-6.0, units='points')
218-
219-
shadow.set_transform(ot)
216+
transform = mtransforms.offset_copy(l.get_transform(), ax.figure,
217+
x=4.0, y=-6.0, units='points')
218+
shadow.set_transform(transform)
220219

221220
# adjust zorder of the shadow lines so that it is drawn below the
222221
# original lines

examples/misc/svg_filter_line.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,9 @@
4141
shadow.set_zorder(l.get_zorder() - 0.5)
4242

4343
# offset transform
44-
ot = mtransforms.offset_copy(l.get_transform(), fig1,
45-
x=4.0, y=-6.0, units='points')
46-
47-
shadow.set_transform(ot)
44+
transform = mtransforms.offset_copy(l.get_transform(), fig1,
45+
x=4.0, y=-6.0, units='points')
46+
shadow.set_transform(transform)
4847

4948
# set the id for a later use
5049
shadow.set_gid(l.get_label() + "_shadow")

lib/matplotlib/tests/test_agg.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,9 @@ def process_image(self, padded_src, dpi):
181181
shadow.update_from(line)
182182

183183
# offset transform
184-
ot = mtransforms.offset_copy(line.get_transform(), ax.figure,
185-
x=4.0, y=-6.0, units='points')
186-
187-
shadow.set_transform(ot)
184+
transform = mtransforms.offset_copy(line.get_transform(), ax.figure,
185+
x=4.0, y=-6.0, units='points')
186+
shadow.set_transform(transform)
188187

189188
# adjust zorder of the shadow lines so that it is drawn below the
190189
# original lines

0 commit comments

Comments
 (0)