Main Content

figurepalette

Show or hideFigure Palette

Syntax

figurepalette(显示)
figurepalette('hide')
figurepalette('toggle')
figurepalette
figurepalette(figure_handle,...)

Description

figurepalette(显示)displays the Figure Palette on the current figure.

figurepalette('hide')hides the Figure Palette on the current figure.

figurepalette('toggle')toggles the visibility of the Figure Palette on the current figure.

figurepaletteis the same asfigurepalette(显示).

figurepalette(figure_handle,...)shows or hides the palette on the figure specified byfigure_handle.

Examples

Open Figure Palette

Plot a line and open the figure palette.

plot(1:10) figurepalette('show')

The Figure Palette to the left of a figure window. The Figure Palette has sections titled

Tips

If you callfigurepalettein a MATLAB®program and subsequent lines depend on the Figure Palette being fully initialized, follow it bydrawnowto ensure complete initialization.

Alternatives

Open or close theFigure Palettetool from the figure'sViewmenu.

Compatibility Considerations

expand all

Not recommended starting in R2021b

Introduced before R2006a