Skip to content

Commit f2448bf

Browse files
committed
Added remove method for figimage
1 parent 80b3c71 commit f2448bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/figure.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,7 @@ def figimage(self, X,
633633
if norm is None:
634634
im.set_clim(vmin, vmax)
635635
self.images.append(im)
636+
im._remove_method = lambda h: self.images.remove(h)
636637
return im
637638

638639
def set_size_inches(self, *args, **kwargs):

0 commit comments

Comments
 (0)