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 740ffbf

Browse filesBrowse files
committed
added comment
1 parent 88e40cb commit 740ffbf
Copy full SHA for 740ffbf

File tree

Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed

‎lib/matplotlib/backend_bases.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backend_bases.py
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,12 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
228228
offsetTrans, facecolors, edgecolors, linewidths, linestyles,
229229
antialiaseds, urls, offset_position):
230230
path, transform = path_id
231+
# Only apply another translation if we have an offset, else we
232+
# resuse the inital transform.
231233
if xo != 0 or yo != 0:
234+
# The transformation can be used by multiple paths. Since
235+
# translate is a inplace operation, we need to copy the
236+
# transformation by .frozen() before applying the translation.
232237
transform = transform.frozen()
233238
transform.translate(xo, yo)
234239
self.draw_path(gc0, path, transform, rgbFace)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.