Documentation

图形对象属性

View and set graphics object properties, define default values

您可以通过设置其属性来控制特定图形对象的行为和外观。要设置属性,请从创建它的函数中返回对象作为输出参数。例如,plot功能返回图表线对象。然后,使用点符号查看和设置属性。点表示法在R2014B及以后起作用。如果您正在使用较早的版本,请使用getset函数。有关更多信息,请参阅Access Property Values

p = plot(1:10,1:10); p.LineWidth = 3;
Alternatively, you can set properties using name-value pair arguments when creating the object, such as情节(1:10,1:10,'lineWidth',3)。大多数绘制函数支持名称值对参数。万博1manbetx

Properties

expand all

根特性 图形environment and state information
图属性 来讲ol appearance and behavior of figure window
Axes Properties Axes appearance and behavior
极性特性 Polar axes appearance and behavior
Area Properties Area chart appearance and behavior
栏属性 Bar chart appearance and behavior
Contour Properties 轮廓图的外观和行为
ErrorBar Properties 错误条形图的出现和行为
GeographicBubbleChart属性 来讲ol geographic bubble chart appearance and behavior
热玛普查特性 热图图表外观和行为
Line Properties Chart line appearance and behavior
Quiver Properties 颤抖的图表外观和行为
Scatter Properties 散点图的外观和行为
楼梯特性 Stair chart appearance and behavior
茎特性 Stem chart appearance and behavior
Surface Properties 图表表面外观和行为
WordCloudChart Properties 来讲ol word cloud chart appearance and behavior
AnimatedLine属性 Line animation appearance and behavior
Image Properties 图像外观和行为
Light Properties Light appearance and behavior
Line Properties Primitive line appearance and behavior
Patch Properties 补丁外观和行为
Polygon Properties Polygon appearance and behavior
Rectangle Properties 矩形外观和行为
Surface Properties Primitive surface appearance and behavior
Text Properties Text appearance and behavior
函数线属性 Line chart appearance and behavior
ImplicitFunctionLine Properties Implicit line chart appearance and behavior
参数化功能属性 Parameterized line chart appearance and behavior
FunctionContour Properties 轮廓图的外观和行为
FunctionsUrface属性 Surface chart appearance and behavior
ImplicitFunctionSurface Properties Implicit surface chart appearance and behavior
参数化functionsurface属性 参数化表面图表的外观和行为
组属性 Group object appearance and behavior
Transform Properties 改变对象外观和行为
配色栏属性 Colorbar appearance and behavior
传奇属性 Legend appearance and behavior
CategoricalRuler Properties 来讲ol axis with categorical values
DatetimeRuler Properties 来讲ol axis with datetime values
DurationRuler Properties 来讲ol axis with duration values
数字属性 来讲ol axis with numeric values
Arrow Properties Arrow appearance and behavior
DoubleEndArrow Properties 双端箭头外观和行为
Ellipse Properties 椭圆形的外观和行为
Line Properties 注释线的外观和行为
Rectangle Properties Annotation rectangle appearance and behavior
TextArrow Properties 文字箭头外观和行为
TextBox Properties Text box appearance and behavior

Functions

get Query graphics object properties
set 设置图形对象属性
reset 将图形对象属性重置为默认值
Property Inspector 开放物业检查员

Topics

图形对象

图形objects are the visual components used by MATLAB®to display data graphically.

Access Property Values

You can set and query property values or return them to their original (factory default) values.

Features Controlled by Graphics Objects

图形对象以直观和有意义的方式表示数据,例如这些对象的线图,图像,文本和组合。

Default Property Values

Nearly all graphics object properties have predefined values, but you can define default property values.

Define Default Line Styles

此示例显示了如何设置默认行样式。

Multilevel Default Values

This example sets default values on more than one level in the hierarchy.

Default Values for Automatically Calculated Properties

When you create a graph, MATLAB sets certain property values appropriately for the particular graph.

How MATLAB Finds Default Values

All graphics object properties have values built into MATLAB. You can also define your own default values.

Factory-Defined Property Values

绘制函数如果未将值指定为参数或默认值,则使用出厂定义的属性值。

MATLAB中的DPI意识到行为

Learn about DPI-aware behavior that improves the appearance of graphical elements on high-resolution systems.

这个话题有帮助吗?