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

Skip to content

Commit 7a30732

Browse files
committed
Fix span selector onmove when we exit axes
1 parent 2804be4 commit 7a30732

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/widgets.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,6 +1479,9 @@ def _onmove(self, event):
14791479
if self.pressv is None:
14801480
return
14811481
x, y = self._get_data(event)
1482+
if x is None:
1483+
return
1484+
14821485
self.prev = x, y
14831486
if self.direction == 'horizontal':
14841487
v = x

0 commit comments

Comments
 (0)