custom datacursormode

版本 1.0.0.0 (4.1 KB) 作者: Phil Goddard
custom callback function for datacursormode to display value of all lines on a plot
1.9K 次下载
更新时间 2005/7/14

查看许可证

编者注: This file was a File Exchange Pick of the Week

This function implements a custom callback for datacursormode. It overrides the default functionality (that displays the x-y values of the last line selected) by adding a dragable vertical line and displaying the x-y values of all lines on an axis.

Note: Due to some issues with graphics listeners that this file does not deal with:
1. The title of the datacursormode display box shows the name of the last signal selected (rather than a generic title)
2. If changes are made to the legend, more lines are added to the axis, or the Display Style is changed from Datatip to Window Inside Figure, the user needs to turn datacursor mode off then back on again to see the correct display.

引用格式

Phil Goddard (2024). custom datacursormode (https://www.mathworks.com/matlabcentral/fileexchange/8004-custom-datacursormode), MATLAB Central File Exchange. 检索来源 .

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

Community Treasure Hunt

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

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