I have some data that I plot using the PLOT command. I want to draw some arrows of a given length on top of the plot at some coordinates given by the data. I want to plot the arrows in such a way that when I zoom in the plot the arrows maintain their position with respect to the data. I have been using the command ANNOTATION to create the arrows specifying the initial and final point for the arrow. However, when zooming in, the arrows appear at the same point relative to the figure but they move relative to the data. How can I avoid this behaviour?
MATLAB: How to ensure that the arrows in the plot stay at the same data point when I zoom in MATLAB 7.14 (R2012a)
MATLAB
Best Answer