可视化探查
平移、缩放和旋转图形;修改和保存观测值
交互式地探查和编辑绘制的数据,以改善显示或揭示有关数据的其他信息。例如,可以通过平移、缩放或旋转坐标区来调整所绘制数据的视图。此外,还可以使用数据刷亮修改数据点,或使用属性检查器编辑绘图的外观。有关详细信息,请参阅 交互式探查绘图数据。
函数
绘图编辑工具
属性检查器 | 打开属性检查器 |
plotedit | 以交互方式编辑和注释绘图 |
plottools | (不推荐)显示或隐藏绘图工具 |
showplottool | (不推荐)显示或隐藏指定的绘图工具 |
figurepalette | (不推荐)显示或隐藏图窗选项板 |
plotbrowser | (不推荐)显示或隐藏绘图浏览器 |
propertyeditor | (不推荐)显示或隐藏属性编辑器 |
propedit | (不推荐)打开属性编辑器 |
数据提示和工具栏按钮
自定义数据提示
datatip | 创建数据提示 (自 R2019b 起) |
dataTipTextRow | 向数据提示添加行 |
自定义工具栏按钮
axtoolbar | 创建坐标区工具栏 |
axtoolbarbtn | 向坐标区工具栏添加按钮 |
addToolbarExplorationButtons | 向图窗工具栏添加数据探索按钮 |
removeToolbarExplorationButtons | 从图窗工具栏中删除数据探索按钮 |
内置交互
panInteraction | 平移交互 |
rulerPanInteraction | 标尺-平移交互 |
zoomInteraction | 缩放交互 |
regionZoomInteraction | 区域缩放交互 |
rotateInteraction | 旋转交互 |
dataTipInteraction | 数据提示交互 |
editInteraction | Edit text interaction (自 R2021b 起) |
enableDefaultInteractivity | 启用内置坐标区交互 |
disableDefaultInteractivity | 禁用内置坐标区交互 |
交互模式
pan | Enable pan mode |
zoom | 启用缩放模式 |
rotate3d | Enable rotate mode |
datacursormode | 启用数据游标模式 |
brush | 以交互方式标记图中的数据值 |
enableLegacyExplorationModes | 控制 UI 图窗中模式的行为 (自 R2020a 起) |
属性链接
linkdata | 自动更新图数据 |
linkaxes | 同步多个坐标区的范围 |
linkprop | 为图形对象的对应属性保持相同值 |
refreshdata | 刷新图数据 |
属性
数据提示和工具栏按钮
DataTipTemplate 属性 | 数据提示内容和外观 |
AxesToolbar 属性 | 坐标区工具栏的外观和行为 |
ToolbarStateButton 属性 | 坐标区工具栏状态按钮的外观和行为 |
ToolbarPushButton 属性 | 坐标区工具栏普通按钮的外观和行为 |
ToolbarDropdown 属性 | 修改坐标区工具栏中的下拉菜单 (自 R2019b 起) |
App 中的交互行为
CartesianAxesInteractionOptions Properties | Axes interaction behavior for apps (自 R2023a 起) |
PolarAxesInteractionOptions Properties | Polar axes interaction behavior for apps (自 R2024a 起) |
GeographicAxesInteractionOptions Properties | Geographic axes interaction behavior for apps (自 R2024a 起) |
实时编辑器任务
创建绘图 | 在实时编辑器中以交互方式创建和探索可视化 (自 R2021a 起) |
主题
- MATLAB 绘图类型
绘制数据图时可以使用各种各样的函数。
- 交互式探查绘图数据
通过缩放、平移、旋转、数据提示或数据刷亮等交互操作来探查数据。
- 创建自定义数据提示
更改数据提示标签和值,或显示新行。
- 更改数据后自动刷新图
使用数据链接功能或设置数据源属性,从而将图链接到它们所表示的工作区变量。
- 对图的交互进行控制
自定义坐标区工具栏,指定要构建到坐标区中的交互,或控制 App 中坐标区的交互行为。
MATLAB 命令
您点击的链接对应于以下 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:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)