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

Skip to content

Commit 47c37bf

Browse files
committed
Fix bug in SpanSelector when blit=True
1 parent 7be53fa commit 47c37bf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/matplotlib/widgets.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,9 +1417,8 @@ def new_axes(self, ax):
14171417
**self.rectprops)
14181418
self.ax.add_patch(self.stay_rect)
14191419

1420-
if not self.useblit:
1421-
self.ax.add_patch(self.rect)
1422-
self.artists = [self.rect]
1420+
self.ax.add_patch(self.rect)
1421+
self.artists = [self.rect]
14231422

14241423
def ignore(self, event):
14251424
"""return *True* if *event* should be ignored"""

0 commit comments

Comments
 (0)