Main Content

plotbrowser

(Not recommended) Show or hide the Plot Browser

    plotbrowser is not recommended. Use inspect to launch the Property Inspector instead. For more information, see Version History.

    Description

    plotbrowser shows the Plot Browser plot tool on the current figure. If no current figure exists, plotbrowser 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 plotting tool to its original configuration.

    example

    plotbrowser(state) changes the state of the Plot Browser plot tool on the figure. For example, plotbrowser("on") shows the Plot Browser.

    plotbrowser(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 Plot Browser on a figure by calling the plotbrowser function. The tool opens in the same configuration as last time you invoked the tool.

    plot(rand(5))
    plotbrowser

    Plot Browser tool to the right of a figure window. The Plot Browser tool displays a list of axes and line objects with check boxes next to each item. The color of each line object in the list matches the color of the corresponding line.

    Input Arguments

    collapse all

    Plot Browser tool state, specified as one of these values:

    • "on" — Show Plot Browser.

    • "off" — Hide Plot Browser.

    • "toggle" — Switch the Plot Browser state between the "on" and "off" states.

    Example: plotbrowser("on") shows the Plot Browser plot tool on the current figure.

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

    Example: plotbrowser(f) shows the Plot Browser plot tool on the figure f.

    Tips

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

    Alternatives

    Show or hide the Plot Browser tool from the View menu of a figure window.

    Version History

    Introduced before R2006a

    expand all