Skip to content

Commit 7bd9d3c

Browse files
committed
added comment
1 parent 88e40cb commit 7bd9d3c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,9 @@ def draw_path_collection(self, gc, master_transform, paths, all_transforms,
229229
antialiaseds, urls, offset_position):
230230
path, transform = path_id
231231
if xo != 0 or yo != 0:
232+
# The transformation can be used by multiple paths. Since
233+
# translate is a inplace operation, we need to copy the
234+
# transformation by .frozen().
232235
transform = transform.frozen()
233236
transform.translate(xo, yo)
234237
self.draw_path(gc0, path, transform, rgbFace)

0 commit comments

Comments
 (0)