颜色和样式
选择颜色、颜色图、线型和图窗主题
为图窗指定主题,自定义二维图的颜色和线型,并为曲面、补片和索引图像选择颜色图。显示颜色栏以显示颜色图的颜色与数据之间的关系。
函数
属性
ColorBar 属性 | 颜色栏的外观和行为 |
主题
绘图颜色和样式
- 指定绘图颜色
自定义绘图中的颜色。 - 指定绘图中的线和标记的外观
自定义绘图中的线条和标记。 - 控制绘制中颜色和线型的自动选择
控制绘图函数使用的颜色和线型。 - Interactively Customize Plot Appearance
Interactively modify the properties of graphics objects in a figure, and reproduce the style using generated code.
图形主题
- Graphics and App Themes
Control the theme of a figure, and customize the colors of elements in the figure. (自 R2025a 起) - Design Graphics and Apps for Different Themes
Customize the colors of plots and apps, and ensure consistent results on systems configured for different themes. (自 R2025a 起)
颜色图和颜色栏
- 创建颜色栏
在图形中添加颜色栏并自定义其外观。 - 使用颜色图更改颜色方案
在不同预定义颜色图之间切换,或创建自定义颜色图。 - 曲面绘图数据与颜色图的关系
更改曲面绘图数据与颜色图之间的关系。 - 图像数据与颜色图的关系
控制像素值与颜色图的映射关系。 - 补片数据与颜色图的关系
控制补片与颜色图之间的关系。 - 控制颜色图范围
设置要将数据缩放映射到颜色图的范围。 - 颜色图和真彩色之间的差异
确定是否在可视化图形中使用颜色图或真彩色。