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

Skip to content

Commit 1384627

Browse files
committed
CTRL does not fix aspect in zoom-to-rect mode.
This has been the case since at least mpl2.0, so let's just fix the doc for now. Likely there was some confusion with zoom/pan mode, where CTRL does fix the aspect.
1 parent 9465538 commit 1384627

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
@@ -2911,8 +2911,7 @@ class NavigationToolbar2:
29112911
'Left button pans, Right button zooms\n'
29122912
'x/y fixes axis, CTRL fixes aspect',
29132913
'move', 'pan'),
2914-
('Zoom', 'Zoom to rectangle\nx/y fixes axis, CTRL fixes aspect',
2915-
'zoom_to_rect', 'zoom'),
2914+
('Zoom', 'Zoom to rectangle\nx/y fixes axis', 'zoom_to_rect', 'zoom'),
29162915
('Subplots', 'Configure subplots', 'subplots', 'configure_subplots'),
29172916
(None, None, None, None),
29182917
('Save', 'Save the figure', 'filesave', 'save_figure'),

0 commit comments

Comments
 (0)