帮助中心帮助中心
向图窗工具栏添加数据探查按钮
addToolbarExplorationButtons(fig)
示例
addToolbarExplorationButtons(fig) 将数据探查按钮添加到指定图窗的图窗工具栏中。
fig
在 R2018b 中,数据探查按钮从图窗工具栏移至坐标区工具栏。在大多数情况下,您不需要使用此函数。但是,如果您的代码依赖于图窗工具栏中显示的按钮,则可以使用 addToolbarExplorationButtons 和 removeToolbarExplorationButtons 函数来控制图窗工具栏中按钮的外观。
addToolbarExplorationButtons
removeToolbarExplorationButtons
全部折叠
创建一个包含曲面图的图窗。然后在图窗工具栏中添加数据探查按钮。
fig = figure; surf(peaks); addToolbarExplorationButtons(fig)
请注意,图窗工具栏现在包括用于放大、缩小等的按钮。
从图窗工具栏中删除按钮。
removeToolbarExplorationButtons(fig)
Figure
目标图窗,指定为单个 Figure 对象或 Figure 对象向量。
标准数据探查按钮包括用于执行以下操作的选项:
放大或缩小坐标区视图
平移坐标区视图
旋转坐标区视图
显示数据提示
刷亮数据
在 R2018b 中,数据探查按钮从图窗工具栏移至坐标区工具栏。以下图窗显示了按钮的位置转移。
在 R2018a 中推出
removeToolbarExplorationButtons | axtoolbar
axtoolbar
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office