Is there anyone out there who knows of a way of altering the way a figure is refreshed? I have been developing some M-files for placing labels on the lines of a contour plot (similar to the "extcontour" package). The package (as is) allows use of the mouse to select the placement of these labels along a line, WITHOUT removing data from the contour description matrix (the points defining the lines).
Instead of altering the contour description matrix I had planned on using the patch function to remove a piece of contour line so as to add a line label. However, I have found that after adding a couple of line labels in this way, lines are drawn over some of the existing labels in what appears to be a very random way. It turns out that I have never been able to get more than about 70% of the labels added properly (i.e., without lines drawn through them). I am assuming that the way a figure is refreshed is responsible for this problem.
So back to my question: Is there a way of telling the refresh function to not redraw/refresh certain objects? I've already tried (in vain) using the following properties (none of which I know much about).
set(figure_handle,'BackingStore','off'); set(axes_handle,'Layer','top'); %% I couldn't find any documentation %% on this property, so I tried it! set(axes_handle,'DrawMode','fast'); set(line_handle,'EraseMode','xor'); set(line_handle,'EraseMode','none'); set(line_handle,'EraseMode','background');