Create figure window
figure
creates a new figure window using
default property values. The resulting figure is the current figure.
figure(
modifies
properties of the figure using one or more name-value pair arguments.
For example, Name,Value
)figure('Color','white')
sets the background
color to white.
figure(
makes the
figure specified by f
)f
the current figure and
displays it on top of all other figures.
figure(
finds a
figure in which the n
)Number
property is equal
to n
, and makes it the current figure. If no
figure exists with that property value, MATLAB® creates a new
figure and sets its Number
property to n
.
Use the graphics root object to set default values on the root level for
other types of objects. For example, set the default colormap for all future
figures to the summer
colormap.
set(groot,'DefaultFigureColormap',summer)
'remove'
keyword.set(groot,'DefaultFigureColormap','remove')