Select graphics object for data cursor

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?

回答(0 个)

类别

提问:

2012-11-23

Community Treasure Hunt

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

Start Hunting!

Translated by