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

Skip to content

Commit 7249f25

Browse files
committed
Mention keyboard modifiers in toolbar tooltip texts.
Otherwise the feature is a bit obscure...
1 parent faffaa1 commit 7249f25

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2818,8 +2818,12 @@ class NavigationToolbar2:
28182818
('Back', 'Back to previous view', 'back', 'back'),
28192819
('Forward', 'Forward to next view', 'forward', 'forward'),
28202820
(None, None, None, None),
2821-
('Pan', 'Pan axes with left mouse, zoom with right', 'move', 'pan'),
2822-
('Zoom', 'Zoom to rectangle', 'zoom_to_rect', 'zoom'),
2821+
('Pan',
2822+
'Left button pans, Right button zooms\n'
2823+
'x/y fixes axis, CTRL fixes aspect',
2824+
'move', 'pan'),
2825+
('Zoom', 'Zoom to rectangle\nx/y fixes axis, CTRL fixes aspect',
2826+
'zoom_to_rect', 'zoom'),
28232827
('Subplots', 'Configure subplots', 'subplots', 'configure_subplots'),
28242828
(None, None, None, None),
28252829
('Save', 'Save the figure', 'filesave', 'save_figure'),

0 commit comments

Comments
 (0)