Graphics Object Properties

Properties for the graphics object in OpenMatrix.

Root Properties

Property Name
Description/Values
children
A vector of figure handles, which are children of the root.
currentfigure
The handle of the current figure.
handle
The handle of the root, which is 0.
0
parent
The parent handle; null for the root object.
0
type
The type of the root object.
'root'
units
Units of measurement.
'pixels' | 'normalized'

Figure Properties

Property Name
Description/Values
children
A vector of axes handles, which are the children of the figure.
currentaxes
Handle of the current axes of the figure.
handle
Handle of the figure object.
Integer.
parent
Parent handle, which is always 0 (root).
0
position
Location and size of the figure.
The location is specified by the upper-left point, and the size is specified by the width and height.
Note: This property is only valid for floating figure. If you change this property for a docked figure, there will be no effect, but after undocking the figure, the size/position will be updated accordingly.
[left top width height]
type
Type of figure object.
'figure'
units
Units of measurement.
'pixels' | 'normalized'
visible
Visibility of the figure.
'on' | 'off'

Axes Properties

Property Name
Description/Values
children
A vector of handles, which are the children of the axes.
color
Background color of the axes.
1*3 matrix of RGB | colorname
fontangle
Font angle of the axes.
'regular' | 'italic'
fontname
Axes font name.
Any available font from the system.
fontsize
Font size of the axes.
Integer
fontweight
Font weight of the axes.
'normal' | 'bold'
handle
Handle of the axes object.
Double
parent
Handle of the parent figure.
position
Location and size of the axes in the figure.
Location is specified by the upper-left point; size is specified by the width and height
[left top width height]
title
Handle of the title, which is a text object.
type
Type of axes object.
'axes'
units
Units of measurement.
'normalized' | 'pixels'
visible
Visibility of the axes.
'on' | 'off'
xcolor
Color of the x axis.
1*3 matrix of RGB | colorname
xgrid
Status of the x axis grid lines.
'off' | 'on'
xlabel
Handle of the label of the x axis, which is a text object.
xminorgrid
Status of the x axis minor grid lines.
'off' | 'on'
xscale
Scale of the x axis.
'linear' | 'log' | 'db10' | 'db20'
xtick
Number of tics on the x axis.
Integer
ycolor
Color of the y axis.
1*3 matrix of RGB | colorname
ygrid
Status of the y axis grid lines.
'off' | 'on'
ylabel
Handle of the label of y axis, which is a text object.
yminorgrid
Status of the y axis minor grid lines.
'off' | 'on'
yscale
Scale of the y axis.
'linear' | 'log' | 'db10' | 'db20'
ytick
Number of tics on the y axis.
Integer
zcolor
Color of the z axis.
1*3 matrix of RGB | colorname
zgrid
Status of the z axis grid lines.
'off' | 'on'
zlabel
Handle of the label of z axis, which is a text object.
zminorgrid
Status of the z axis minor grid lines.
'off' | 'on'
zscale
Scale of the z axis.
'linear' | 'log' | 'db10' | 'db20'
ztick
Number of tics on the z axis.
Integer

Line Properties

Property Name
Description/Values
children
Children of the line object, currently an empty matrix.
color
Line color.
1*3 matrix of RGB | colorname
handle
Handle of the line object.
linestyle
The line style.
'-' | '--' | '-.' | ':' | 'none'
linewidth
Width of the line.
Integer
marker
Line marker.
's' | 'square' | '^' | 'v' | 'x' | 'o' | 'd' | 'diamond' | '+' | '*' | '.' | 'none'
markerfacecolor
Color of the line marker.
1*3 matrix of RGB | colorname
markersize
Size of the marker.
Integer
parent
Handle of the parent axes.
0
type
The type of line object.
'line'
units
Units of measurement.
'pixels' | 'normalized'

Surface Properties

Property Name
Description/Values
children
Children of the surface object, currently an empty matrix.
color
Surface color.
1*3 matrix of RGB | colorname
handle
Handle of the surface object.
parent
Handle of the parent axes.
0
type
Surface object type.
'surface'
units
Units of measurement.
'pixels' | 'normalized'

Text Properties

Property Name
Description/Values
children
Children of the text object, currently an empty matrix.
color
The text color.
1*3 matrix of RGB | colorname
fontangle
The font angle of the text.
'regular' | 'italic'
fontname
The text's font name.
Any available fonts from the system.
fontsize
The text's font size.
Integer
fontweight
The font weight of the text.
'normal' | 'bold'
handle
The handle of the text object.
parent
The handle of the parent object.
0
string
The content of the text object.
type
The text object type.
'text'
units
The units of measurement.
'pixels' | 'normalized'
visible
Visibility of the text object.
'on' | 'off'

Hggroup Properties

Property Name
Description/Values
areagroup (area plot only)
A vector of handles, which point to area groups.
basevalue (area plot only)
Base value of the shading.
Double
bargroup (bar plot only)
A vector of handles, which point to bar groups.
barlayout (bar plot only)
The bar layout style.
'grouped' | 'stacked'
barwidth (bar plot only)
The width of the bars.
Integer
marker (scatter plot only)
marker style
's' | 'square' | '^' | 'v' | 'x' | 'o' | 'd' | 'diamond' | '+' | '*' | '.' | 'none'
markerfacecolor (scatter plot only)
The marker color.
1*3 matrix of RGB | colorname
children
The children of the hggroup object.
facecolor
The object color.
1*3 matrix of RGB | colorname
handle
The handle of the hggroup object.
parent
The handle of the parent axes.
0
type
The type of the hggroup object.
'hggroup'
units
The units of measurement, currently not used.
'pixels' | 'normalized'

Image Properties

Property Name
Description/Values
children
The children of the image object, currently an empty matrix.
filepath
The filepath.
handle
The handle of the image object.
parent
The handle of the parent object.
0
position
The location and size of the image in the figure. The location is specified by the upper-left point, and the size is specified by the width and height.
[left top width height]
type
The image object type.
'image'
units
Units of measurement (not yet used).
'pixels' | 'normalized'