Remove data exploration buttons from figure toolbar
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.
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 figures
Figureobject | vector of
Target figures, specified as a single
Figure object or a vector of
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.