Add filename to data point label in a figure
Show older comments
I have a script that outputs a figure from three variables with thousands of scattered data points. The data comes from multiple (77).csv files. I would like to be able to select any point, using the DATA CURSOR, and see the filename ".csv" from which the data point originated in the label. Currently, when I select the data point, I do see the three variables that make up the X, Y and Z coordinates. (see attached pic) I did not create the script that creates the figure and am a brand new user of Matlab.
2 Comments
Jan
on 23 Jan 2018
What exactly is "output a model"? A "model" can be nearly everything. How do you want to "select" a point? By its index or using the mouse? How is the information available, which file belongs to which point?
Please edit the question and add more details.
Troy Buschbom
on 23 Jan 2018
Accepted Answer
More Answers (1)
Jordy Jose
on 31 Jan 2018
0 votes
Hi,
You may refer to the below MATLAB Answers post to learn how to display Custom text for the Data Cursor:
https://www.mathworks.com/matlabcentral/answers/315124-how-do-i-display-custom-text-for-the-data-cursor
1 Comment
Troy Buschbom
on 31 Jan 2018
Categories
Find more on Axis Labels in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!