Documentation Center

  • Trial Software
  • Product Updates

reset

Reset graphics object properties to their defaults

Syntax

reset(h)

Description

reset(h) resets all properties on the object identified by h to their default values. Properties that do not have default values are not affected.

To obtain the default value of a property defined on the root level, use this statement.

get(0,'DefaultFigureColor')

If h is a figure, the MATLAB® software does not reset Position, Units, WindowStyle, or PaperUnits. If h is an axes, MATLAB does not reset Position and Units.

Examples

reset(gca) resets the properties of the current axes.

reset(gcf) resets the properties of the current figure.

See Also

| | | |

Was this topic helpful?