ginput with normalized coordinates of the figure window.

版本 1.0.0 (4.6 KB) 作者: Stijn Haenen
Graphical input from mouse.
43.0 次下载
更新时间 2020/5/11

查看许可证

This function is an adapted version of the ginput function. The outut coordinates are the normalized coordinates of the figure window, instead of the x- and y-coordinate. This function can be used for adding annotations in the figure, for example:

a=ginput_norm(2);
annotation(figure1,'line',[a(1,1) a(2,1)],...
[a(1,2) a(2,2)],'LineStyle','--');

引用格式

Stijn Haenen (2024). ginput with normalized coordinates of the figure window. (https://www.mathworks.com/matlabcentral/fileexchange/75469-ginput-with-normalized-coordinates-of-the-figure-window), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2020a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0