Merge pull request #20772 from anntzer/rr · matplotlib/matplotlib@ec126b0 · GitHub
Skip to content

Commit ec126b0

Browse files
authored
Merge pull request #20772 from anntzer/rr
Implement remove_rubberband rather than release_zoom.
2 parents 89645b8 + c6f1632 commit ec126b0

3 files changed

Lines changed: 7 additions & 14 deletions

File tree

lib/matplotlib/backends/_backend_tk.py

Lines changed: 3 additions & 6 deletions

lib/matplotlib/backends/backend_macosx.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ def __init__(self, canvas):
108108
def draw_rubberband(self, event, x0, y0, x1, y1):
109109
self.canvas.set_rubberband(int(x0), int(y0), int(x1), int(y1))
110110

111-
def release_zoom(self, event):
112-
super().release_zoom(event)
111+
def remove_rubberband(self):
113112
self.canvas.remove_rubberband()
114113

115114
def save_figure(self, *args):

lib/matplotlib/backends/backend_webagg_core.py

Lines changed: 3 additions & 6 deletions

0 commit comments

Comments
 (0)