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

Skip to content

Commit d8e989d

Browse files
authored
Merge pull request matplotlib#26365 from QuLogic/figure-artist-removal
2 parents 4f65e66 + 9b80532 commit d8e989d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/artist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,9 @@ def remove(self):
249249
_ax_flag = True
250250

251251
if self.figure:
252-
self.figure = None
253252
if not _ax_flag:
254-
self.figure = True
253+
self.figure.stale = True
254+
self.figure = None
255255

256256
else:
257257
raise NotImplementedError('cannot remove artist')

0 commit comments

Comments
 (0)