Main Content

propertyeditor

(Not recommended) Show or hide the Property Editor

    propertyeditor is not recommended. Use inspect to launch the Property Inspector instead. For more information, see Compatibility Considerations.

    Description

    example

    propertyeditor shows the Property Editor plot tool on the current figure. If no current figure exists, propertyeditor will create one.

    When you dock, undock, resize, or reposition a plot tool, MATLAB® restores that configuration when you invoke the tool for subsequent figures, both within and across MATLAB sessions. There is no command to reset a plot tool to its original configuration.

    propertyeditor(state) changes the state of the Property Editor plot tool on the figure. For example, propertyeditor("on") shows the Property Editor.

    propertyeditor(fig,___) operates on the specified figure instead of the current figure. The input fig can precede any of the input argument combinations in the previous syntaxes.

    Examples

    collapse all

    Show the Property Editor on a figure by calling the propertyeditor function. The tool opens in the same configuration as last time you invoked the tool.

    plot(1:10);
    propertyeditor

    Property Editor tool below a figure window. The Property Editor tool has options to set the figure name, colormap, and figure color. A check box is labeled "Show Figure Number". Two buttons are labeled "More Properties" and "Export Setup".

    Input Arguments

    collapse all

    Property Editor tool state, specified as one of these values:

    • "on" — Show Property Editor.

    • "off" — Hide Property Editor.

    • "toggle" — Switch the Property Editor state between the "on" and "off" states.

    Example: propertyeditor("on") shows the Property Editor plot tool on the current figure.

    Target figure, specified as a Figure object. Use fig to show or hide the Property Editor on a specific figure instead of the current figure.

    Example: propertyeditor(f) shows the Property Editor plot tool on the figure f.

    Tips

    If you call propertyeditor in a MATLAB program and subsequent lines depend on the Property Editor being fully initialized, follow it by drawnow to ensure complete initialization.

    Alternatives

    Show or hide the Property Editor tool from the View menu of a figure window.

    Version History

    Introduced before R2006a

    expand all