Peekplot

Mouse click to view data points on plot.
2.1K 次下载
更新时间 2003/12/10

查看许可证

Enable this program (by handle) on an axes or a line object to activate graphical inspection of the data points in the plot or line object. When enabled, left-click and hold on a datapoint on the plot, and its x and y coordinates are displayed. (peekplot currently only works for 2-d plots). When the mouse button is released, the text will vanish. Click-and-drag to move the text to a more visible area if necessary, with a dashed-line trail to the original point. Peekplot cleans up after itself when terminated.

Peekplot works seamlessly with moveplot.m, but users must be sure to terminate the functions in the reverse order they are invoked (like a stack), e.g.:
m=plot(x,sin(x));
moveplot(m)
peekplot(m)
%perform inspection and alteration
peekplot(m,'off')
moveplot(m,'off')

If moveplot is terminated before peekplot, both will be terminated at once.

Peekplot works with addplot, but not necessarily seamlessly. Addplot may be fixed in a later revision.

引用格式

Brandon Kuczenski (2024). Peekplot (https://www.mathworks.com/matlabcentral/fileexchange/4227-peekplot), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R12
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Annotations 的更多信息
致谢

启发作品: TAGS

Community Treasure Hunt

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

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