Main Content

removeToolbarExplorationButtons

从图窗工具栏中删除数据探索按钮

说明

示例

removeToolbarExplorationButtons(fig) 从指定图窗的图窗工具栏中删除任何数据探索按钮

在 R2018b 中,数据探索按钮从图窗工具栏移至坐标区工具栏。在大多数情况下,您不需要使用此函数。但是,如果您的代码依赖于图窗工具栏中显示的按钮,则可以使用 addToolbarExplorationButtonsremoveToolbarExplorationButtons 函数来控制图窗工具栏中按钮的外观。

示例

全部折叠

创建一个包含曲面图的图窗。然后在图窗工具栏中添加数据探索按钮。

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

请注意,图窗工具栏现在包括用于放大、缩小等的按钮。

从图窗工具栏中删除按钮。

removeToolbarExplorationButtons(fig)

输入参数

全部折叠

目标图窗,指定为单个 Figure 对象或 Figure 对象向量。

详细信息

全部折叠

数据探索按钮

标准数据探索按钮包括用于执行以下操作的选项:

  • 放大或缩小坐标区视图

  • 平移坐标区视图

  • 旋转坐标区视图

  • 显示数据提示

  • 刷亮数据

在 R2018b 中,数据探索按钮从图窗工具栏移至坐标区工具栏。以下图窗显示了按钮的位置转移。

Figure with an arrow pointing from buttons in the figure toolbar to buttons above the upper-right corner of the axes

版本历史记录

在 R2018a 中推出