How to visualize data names in plots with the data cursor
5 次查看(过去 30 天)
显示 更早的评论
Let's assume that I have 3 functions plotted in the same figure, named 'a', 'b' and 'c'. While I watch the figure I would like to be able to go over one of the functions with the cursor and see its name. Is it possible maybe to change what the "Data cursor" is displaying and add to the coordinates a custom string? Thank you all!
0 个评论
回答(1 个)
Steven Lord
2016-7-2
2 个评论
Antonio Rubio
2019-12-23
I'm also trying to solve the same problem on MATLAB R2019a. I have a figure with many different traces and would to display the name of the trace along with the X and Y coordinates. I found one solution that displays the name but in the command window. Another one that allows you to modify the data tip. However I cant figure how to get the data tip to display the name of the trace. Right now the only way to know is if I creat a legend. The problem is there are a lot of traces and the colors repeat. Thank you!
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!