newplot
plot · scripts/plot/util/newplot.m
ax = newplot ()
ax = newplot (h)
Prepare a figure and axes for a high-level plotting command and return
the axes to draw into. The current figure and axes are created when
missing. The NextPlot properties decide what is cleared first:
figure "new" a new figure is created
figure "replacechildren" the figure children are deleted
figure "replace" the figure is reset (clf reset)
axes "replacechildren" the axes children are deleted
axes "replace" the axes are reset, keeping Position/Units
while "add" keeps the existing contents. H, an axes or figure handle,
selects the target instead of the current figure/axes.