There was an error while loading. Please reload this page.
1 parent 4bbce4f commit caaf0aeCopy full SHA for caaf0ae
1 file changed
lib/matplotlib/widgets.py
@@ -3250,7 +3250,8 @@ def _onmove(self, event):
3250
width = height = max(event.x - x0, event.y - y0)
3251
elif self._active_handle == 'SW':
3252
# Keep x0 + width, y0 + height a fixed point
3253
- new_wh = max(x0 + width - event.x, y0 + height - event.y)
+ new_wh = max(x0 + width - event.x,
3254
+ y0 + height - event.y)
3255
x0 += width - new_wh
3256
y0 += height - new_wh
3257
width = height = new_wh
0 commit comments