File Exchange

image thumbnail

Interactive 2D Plot Magnifier with Matlab Implementation

version 1.0.0.0 (1.78 KB) by Hristo Zhivomirov
Interactive zooming of a 2D figure using a magnifier.

11 Downloads

Updated 30 Dec 2017

View License

The present code is a Matlab function that allows the user to enable interactive zooming on a 2D figure. Clicking the left mouse button and dragging over the axes draws a rectangular magnifier with zoom factor of 2, centered beneath the mouse cursor. Simultaneously, one may turn the mouse scroll wheel to zoom in or out by additional 0.5 times. When the left mouse button is released the magnifier disappears, unless the “Ctrl” button is pressed.
Instructions for use:
- Click and hold the left mouse button to turn the magnifier on;
- Simultaneously, turn the mouse scroll wheel to increase or decrease the magnification factor;
- Release the left mouse button to remove the magnifier;
- Press and hold the “Ctrl” key while operate with the magnifier in order to preserve the zoomed area when the left mouse button is released.

An example is given in order to clarify the usage of the function. For convenience, the input and output arguments are given in the beginning of the function.

Cite As

Hristo Zhivomirov (2019). Interactive 2D Plot Magnifier with Matlab Implementation (https://www.mathworks.com/matlabcentral/fileexchange/65561-interactive-2d-plot-magnifier-with-matlab-implementation), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: magnify