Clear current figure window
figure_handle = clf(...)
clf deletes from the current
figure all graphics objects whose handles are not hidden (i.e., their
is set to
clf('reset') deletes from
the current figure all graphics objects regardless of the setting
HandleVisibility property and resets
all figure properties except
their default values.
the single figure with handle
figure_handle = clf(...) returns
the handle of the figure. This is useful when the figure
off because the noninteger handle becomes invalid
when the reset option is used (i.e.,
on, which is the default).
Use Clear Figure from the figure window's Edit menu to clear the contents of a figure. You can also create a desktop shortcut to clear the current figure with one mouse click. See Create Shortcuts to Rerun Commands.
clf command behaves the same way when
issued on the command line as it does in callback routines —
it does not recognize the
callback. This means that when issued from within
a callback routine,
clf deletes only those objects
HandleVisibility property is set to