Skip to content

Commit 031f77c

Browse files
committed
Fix background when using Selector, blitting and the background hasn't been created yet.
1 parent 94a2f46 commit 031f77c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/widgets.py

+2
Original file line numberDiff line numberDiff line change
@@ -1782,6 +1782,8 @@ def update(self):
17821782
if self.useblit:
17831783
if self.background is not None:
17841784
self.canvas.restore_region(self.background)
1785+
else:
1786+
self.update_background(None)
17851787
for artist in self.artists:
17861788
self.ax.draw_artist(artist)
17871789
self.canvas.blit(self.ax.bbox)

0 commit comments

Comments
 (0)