Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17c4461 commit 46af65aCopy full SHA for 46af65a
1 file changed
lib/matplotlib/artist.py
@@ -605,8 +605,9 @@ def set_figure(self, fig):
605
ACCEPTS: a :class:`matplotlib.figure.Figure` instance
606
"""
607
self.figure = fig
608
- self.add_callback(_dirty_figure_callback)
609
- self.pchanged()
+ if self.figure and self.figure is not self:
+ self.add_callback(_dirty_figure_callback)
610
+ self.pchanged()
611
612
def set_clip_box(self, clipbox):
613
0 commit comments