Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 05d1080

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

File tree

Expand file treeCollapse file tree

3 files changed

+9
-12
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+9
-12
lines changed

‎examples/misc/demo_agg_filter.py

Copy file name to clipboardExpand all lines: examples/misc/demo_agg_filter.py
+3-4Lines changed: 3 additions & 4 deletions
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

Copy file name to clipboardExpand all lines: examples/misc/svg_filter_line.py
+3-4Lines changed: 3 additions & 4 deletions
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

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_agg.py
+3-4Lines changed: 3 additions & 4 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.