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

Skip to content

Commit 48ebf30

Browse files
committed
Fix span selector onmove when we exit axes
1 parent 77dc52b commit 48ebf30

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)