MATLAB 帮助中心
向图窗工具栏添加数据探索按钮
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
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处