Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5266fde

Browse files
committed
Python 2.x fix
1 parent fe376c4 commit 5266fde

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2373,7 +2373,7 @@ def flush_images():
23732373
self.patch.get_transform()))
23742374
renderer.draw_image(gc, round(l), round(b), data)
23752375
gc.restore()
2376-
image_group.clear()
2376+
del image_group[:]
23772377

23782378
for zorder, a in dsu:
23792379
if isinstance(a, mimage._ImageBase) and a.can_composite():

lib/matplotlib/figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ def flush_images():
12831283
gc.set_clip_path(self.get_clip_path())
12841284
renderer.draw_image(gc, l, b, data)
12851285
gc.restore()
1286-
image_group.clear()
1286+
del image_group[:]
12871287

12881288
for zorder, a, func, args in dsu:
12891289
if isinstance(a, mimage._ImageBase) and a.can_composite():

0 commit comments

Comments
 (0)