Add data exploration buttons to figure toolbar
addToolbarExplorationButtons( adds the
data exploration buttons to
the figure toolbar for 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
removeToolbarExplorationButtons functions to control the appearance
of the buttons in the figure toolbar.
Add and Remove Data Exploration Buttons
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.
fig — Target figure
Figure object | vector of
Target figure, specified as a single
Figure object or a vector of
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
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