Zoom Keys

Pan and zoom with simple keystrokes.

https://github.com/gulley/Ax-Drag

You are now following this Submission

Use this tool to move quickly around the data displayed in a 2-D plot. Make sure the figure has focus, and then press any of the following keys. Clicking and dragging will pan the data.
Keys you can use are:
z, Z: zoom in, zoom out, in both dimensions
x, X: zoom in, zoom out, x dimension only
y, Y: zoom in, zoom out, y dimension only
arrow keys: pan the data
a: axis auto
n: axis normal
e: axis equal
g: toggle grid state
spacebar: toggle axis tick display state
h: help

Cite As

Ned Gulley (2026). Zoom Keys (https://github.com/gulley/Ax-Drag/releases/tag/v1.3), GitHub. Retrieved .

Acknowledgements

Inspired: Orthogonalslicer, INTERACTIVEMOUSE

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes Action
1.3

See release notes for this release on GitHub: https://github.com/gulley/Ax-Drag/releases/tag/v1.3

1.2.0.0

Moving to GitHub.

1.1.0.0

Changed copyright information and submission title.

1.0.0.0

Fixed help, added double buffering

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.