Given a plot of three curves in a .fig file I\'d like to add another plot (with hold all
and plot
), but put it behind one of the already e
When the image has a legend, the get(gca,...)
and set(gca,...)
pair result in an error: "Error using set. Children may only be set to a permutation of itself"
In that case, I used the GUI select tool of the figure to select the axes objects, then get and set work only with the plots as required and not the legend as well. After calling set, you have to refresh the legend by calling legend(...)
. I had 5 plots that I needed to reorder. When unsure about the order, permute plots two at a time, refresh the legend and see if that is the order you wanted