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

Skip to content

Commit f73682f

Browse files
committed
Fix span selector onmove when we exit axes
1 parent c9775ab commit f73682f

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
@@ -1518,6 +1518,9 @@ def _onmove(self, event):
15181518
if self.pressv is None:
15191519
return
15201520
x, y = self._get_data(event)
1521+
if x is None:
1522+
return
1523+
15211524
self.prev = x, y
15221525
if self.direction == 'horizontal':
15231526
v = x

0 commit comments

Comments
 (0)