Hi folks,
Simple problem here: I am creating a line object outside a figure's axes using the annotation function.
I need the line object to exhibit circles at each data point, just like the following would do:
line([x1 x2],[y1 y2],'color','k','marker','o')
This works because line objects do have a marker property (and related properties like markersize, markeredgecolor, markerfacecolor)
However, when creating the same line object with the annotations function, like this:
annotation('line',phi1([x1 x2]),phi2([y1 y2]),'color','k','marker','o')
(where phi1 and phi2 are two functions that transform the x and y coordinates to fit in the axes of the figure)
I get the following error message:
---------------
Error using matlab.graphics.shape.Line/set
There is no Marker property on the Line class.
---------------
What is going on? I tried fiddling around with the handles to the annotation, with no success.