magnify 2D

Easily create magnifier axis with cliking,dragging and scrolling

You are now following this Submission

h: Figure handle,default: gcf
1 Draw a rectangle by dragging open a box to create a magnifier axis
2 Click and dragging move the axis
3 Scroll to magnify the graph in magnifier axis
4 Press ESC to freeze the graph in magnifier axis; dragging and moving
axis are still availible, but scrolling is not
5 Press ESC again to end
Note: Magnifier axes are tagged 'Magnifier'(for findobj/findall)
Supported only for 2D graph

Cite As

LY Cao (2026). magnify 2D (https://au.mathworks.com/matlabcentral/fileexchange/38660-magnify-2d), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0