Graphics Object Properties - MATLAB & Simulink (original) (raw)

Main Content

View and set graphics object properties, define default values

You can control the behavior and appearance of a particular graphics object by setting its properties. To set properties, return the object as an output argument from the function that creates it. For example, the plot function returns a chart line object. Then, use dot notation to view and set properties.

p = plot(1:10,1:10); p.LineWidth = 3;

Alternatively, you can set properties using name-value pair arguments when creating the object, such asplot(1:10,1:10,'LineWidth',3). Most plotting functions support name-value pair arguments.

Properties

expand all

Top-Level Objects

Chart Objects

Primitive Objects

Function Objects

Group Objects

Illustration Objects

Ruler Objects

Annotation Objects

Functions

get Query graphics object properties
set Set graphics object properties
reset Reset graphics object properties
Property Inspector Open property inspector

Topics