MATLAB: Can I make objects in a plot untargetable for data cursor

data cursordata cursor modepatchplot

Hello, I have a plot with several other objects in it (see picture below). Is it possible that the data cursor only targets the green plot line and ignores the other objects (e.g. the yellow patch and the pink circles)?

Best Answer

With R2014b or later, the data cursor will not react to any item whose 'PickableParts' is set to 'none'