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

Skip to content

Commit fcfd408

Browse files
committed
Fix so that zooming continues to work even after a box was canceled
1 parent 4b4093d commit fcfd408

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2868,12 +2868,11 @@ def press_zoom(self, event):
28682868
if self._ids_zoom != []:
28692869
for zoom_id in self._ids_zoom:
28702870
self.canvas.mpl_disconnect(zoom_id)
2871-
self.zoom()
28722871
self.release(event)
28732872
self.draw()
28742873
self._xypress = None
28752874
self._button_pressed = None
2876-
self._zoom_mode = None
2875+
self._ids_zoom = []
28772876
return
28782877

28792878
if event.button == 1:

0 commit comments

Comments
 (0)