Select graphics object for data cursor

1 view (last 30 days)
Rene
Rene on 23 Nov 2012
I've got this plot in which I visualize a transparent 3D surface (using patch) and a few data points on or below this surface. I now want to use the data cursor to access the coordinates of these data points. How can I make sure that when I click a position, the cursor jumps to the [x,y,z] of the nearest data point instead of the nearest [x,y,z] of the surface? Especially for data point below the surface the latter happens quite often, which is quite annoying. I tried datacursormode, but to me it seems as if a data cursor is associated with a figure rather than (one of) the graphics object(s) in this figure. Does this mean I cannot make the data cursor sensitive to only the data point (created by plot3) and not to the surface?

Answers (0)

Categories

Find more on Graphics Object Programming 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!