This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

removeToolbarExplorationButtons

Remove data exploration buttons from figure toolbar

Syntax

removeToolbarExplorationButtons(fig)

Description

example

removeToolbarExplorationButtons(fig) removes any data exploration buttons from the figure toolbar of the specified figure.

In R2018b, the data exploration buttons were moved from the figure toolbar to the axes toolbar. In most cases, you do not need to use this function. However, if you have code that relies on the buttons appearing in the figure toolbar, you can use the addToolbarExplorationButtons and removeToolbarExplorationButtons functions to control the appearance of the buttons in the figure toolbar.

Examples

collapse all

Create a figure with a surface plot. Then add the data exploration buttons to the figure toolbar.

fig = figure;
surf(peaks);
addToolbarExplorationButtons(fig)

Notice that the figure toolbar now includes buttons to zoom in, zoom out, and so on.

Remove the buttons from the figure toolbar.

removeToolbarExplorationButtons(fig)

Input Arguments

collapse all

Target figures, specified as a single Figure object or a vector of Figure objects.

More About

collapse all

Data Exploration Buttons

The standard data exploration buttons include options to:

  • Zoom in or out of the axes view

  • Pan the axes view

  • Rotate the axes view

  • Show data tips

  • Brush data

In R2018b, the data exploration buttons were moved from the figure toolbar to the axes toolbar. This figure illustrates the relocation of the buttons.

Introduced in R2018a