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.
2 parents 6768ef8 + 031f77c commit 762666fCopy full SHA for 762666f
lib/matplotlib/widgets.py
@@ -1737,7 +1737,8 @@ def update_background(self, event):
1737
self.canvas.draw()
1738
self.background = self.canvas.copy_from_bbox(self.ax.bbox)
1739
if needs_redraw:
1740
- self.update()
+ for artist in self.artists:
1741
+ self.ax.draw_artist(artist)
1742
1743
def connect_default_events(self):
1744
"""Connect the major canvas events to methods."""
@@ -1781,6 +1782,8 @@ def update(self):
1781
1782
if self.useblit:
1783
if self.background is not None:
1784
self.canvas.restore_region(self.background)
1785
+ else:
1786
+ self.update_background(None)
1787
for artist in self.artists:
1788
self.ax.draw_artist(artist)
1789
self.canvas.blit(self.ax.bbox)
0 commit comments