adding extra information in datacursormode text box
Show older comments
Hello,
I have a subplot with hundreds of (x,y)-points displayed and I want to be able to click at a point and see some textual identification information besides the x and y values. Each point has a unique information.
The straight forward way would be to store the information in an array of same size as the data array, but what is the easiest way to access this array with the datacursormode? The datacursormode returns the x and y values of each point, but it is a little bit inconvient to use those for looking up the identification text for each point, because some points may have same values in different subplots etc.
Accepted Answer
More Answers (1)
Tapi Iho
on 29 Mar 2011
0 votes
Categories
Find more on Cell Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!