User`s guide

8 Programming a GUIDE GUI
Tip When working with multiple axes, it is best not to “raise” the axes y ou
want to plot data into with commands like
axes(a1)
This will make axes a1 the current axes, but it also restacks figures and
flushes all pending events, which consumes computer resources and is rarely
necessary for a callback to do. It is more efficient to simply supply the axes
handle as the first argument of the plotting function you are calling, such as
plot(a1, ...)
which outputs the graphics to axes a1 without restacking figures or flushing
queued events. To designate an axes for plotting functions which do not
accept and axes handle argument, such as the
line function, you can make a1
the current axes as follows.
set(figure_handle,'CurrentAxes',a1)
line(x,y,z,...)
See the Curr entAxes description in the figure properties refere nce page for
more details.
8-48