Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 472072b commit ab9eebfCopy full SHA for ab9eebf
1 file changed
lib/matplotlib/widgets.py
@@ -2074,7 +2074,10 @@ def _press(self, event):
2074
# self._pressv is deprecated but we still need to maintain it
2075
self._pressv = v
2076
if self._active_handle is None:
2077
- self.extents = v, v
+ # when the press event outside the span, we initially set the
2078
+ # extents to (v, v) and _onmove or _release will follow up
2079
+ # use _draw_shape instead of extents to avoid calling update
2080
+ self._draw_shape(v, v)
2081
2082
self.set_visible(True)
2083
0 commit comments