keyboardnavigate
- KEYBOARDNAVIGATE with no arguments toggles the navigation state.
- KEYBOARDNAVIGATE ON turns keyboard navigation 'on' for the current figure.
- KEYBOARDNAVIGATE OFF turns keyboard navigation 'off' in the current figure.
This function is useful when exploring regions of a plot (e.g., time series or images) but the actual area of interest is not know yet. The zoom function with the mouse can be inconvenient at times.
Keys react as follows:
Home: Reset axes limit to automatic, 2D-view
Esc: Reset axes limit to automatic, 2D-view
Page-Up: Decrease axis limits (Zoom-in) by 20%
Page-Down: Increase axis limits (Zoom-out) by 20%
Left-arrow: Pan to the left (in X-direction) by 20%
Right-arrow: Pan to the right(in X-direction) by 20%
Up-arrow: Pan up (in Y-direction) by 20%
Down-arrow: Pan down (in Y-direction) by 20%
SHIFT-Left: Decrease X-axis limits (X-Zoom-in) by 20%
SHIFT-Right: Increase X-axis limits (X-Zoom-out) by 20%
SHIFT-Up: Decrease Y-axis limits (Y-Zoom-in) by 20%
SHIFT-Down: Increase Y-axis limits (Y-Zoom-out) by 20%
CTRL+Home: Reset axes limit to automatic, 3D-view
CTRL+Arrowkeys: Tilt and rotate view
x View Y-Z plane
y View X-Z plane
z View X-Y plane
In 3D plots you have the additional features
+ Pan up in Z-direction by 20%
- Pan down in Z-direction by 20%
Any zooming is in respect to the mouse pointer. If the pointer is
outside the axes limits, zoom is relative to the centre of the plot. Note that zooming changes the axes limits, which may cut-off some of the features in the plot.
Cite As
Andreas Wuestefeld (2024). keyboardnavigate (https://www.mathworks.com/matlabcentral/fileexchange/22334-keyboardnavigate), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |