I have data that overlaps itself a lot, so we're animating it for visualization purposes:
h = animatedline('Color', 'b');DELAY = 0.001;for i = 1:size(mapped_pts, 1) addpoints(h, mapped_pts(i, 1), mapped_pts(i, 2)); drawnow% pause(DELAY)
end
This works, but after a bit the "head" of the line gets harder to pick out, since it's small. I tried adding 'Marker', 'o' to the animatedline parameters, but that leaves a marker at every data point. I'd like to have a marker only on the most recently plotted point. Is this possible?
Best Answer