Interactive 2D Plot Magnifier with Matlab

Interactive zooming on a 2D plot using a magnifier.
ダウンロード: 705
更新 2020/10/14

ライセンスの表示

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 (2024). Interactive 2D Plot Magnifier with Matlab (https://www.mathworks.com/matlabcentral/fileexchange/65561-interactive-2d-plot-magnifier-with-matlab), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2017b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersVisual Exploration についてさらに検索
タグ タグを追加
謝辞

ヒントを得たファイル: magnify

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
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