Interactive 2D Plot Magnifier with Matlab

Interactive zooming on a 2D plot using a magnifier.

您现在正在关注此提交

The present code is a Matlab function that allows the user to enable interactive zooming on a 2D plot. Clicking the left mouse button and dragging over the axes draws a rectangular magnifier with zoom factor of 2, centred beneath the mouse cursor. Simultaneously, one may turn the mouse scroll wheel to zoom in or out additionally. 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.

引用格式

Hristo Zhivomirov (2026). Interactive 2D Plot Magnifier with Matlab (https://ww2.mathworks.cn/matlabcentral/fileexchange/65561-interactive-2d-plot-magnifier-with-matlab), MATLAB Central File Exchange. 检索时间: .

致谢

参考作品: magnify

类别

Help CenterMATLAB Answers 中查找有关 Data Exploration 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.3

A new version of the code has been uploaded.

1.0.0.2

A new version of the code has been uploaded.

1.0.0.1

A new version of the code has been uploaded.

1.0.0.0