MATLAB Function Reference Previous page   Next Page
Annotation Rectangle Properties

Modifying Properties

You can set and query annotation object properties using the set and get functions and the Property Editor (displayed with the propertyeditor command).

Use the annotation function to create annotation objects and obtain their handles.

Annotation Rectangle Property Descriptions

Properties You Can Modify

This section lists the properties you can modify on an annotation ellipse object.

EdgeColor                    ColorSpec Default: [0 0 0]

Color of the rectangle edge. A three-element RGB vector or one of the MATLAB predefined names, specifying the edge color.

See the ColorSpec reference page for more information on specifying color.

FaceColor                    ColorSpec Default: [0 0 0]

Color of the rectangle interior. A three-element RGB vector or one of the MATLAB predefined names, specifying the color of the interior of the rectangle.

See the ColorSpec reference page for more information on specifying color.

Height                       vertical dimension in normalized units

Vertical dimension of the rectangle. This property specifies height of the rectangle in units normalized to the figure.

LineStyle                    {-} | -- | : | -. | none

Line style. This property specifies the line style of the rectangle edge. Available line styles are shown in the following table.

Specifier String
Line Style
-
Solid line (default)
--
Dashed line
:
Dotted line
-.
Dash-dot line
none
No line

LineWidth                    scalar

The width of the rectangle edge. Specify this value in points (1 point = 1/72 inch). The default LineWidth is 0.5 points.

Width                        horizontal dimension in normalized units

Horizontal dimension of the ellipse. This property specifies width of the ellipse in units normalized to the figure.

Note that, if Width and Height are equal, the ellipse becomes a circle when the figure width and height (last two elements in the figure Position property vector) are also equal.

X                            horizontal dimension in normalized units

Horizontal dimension of the ellipse. This property specifies the horizontal location of the center of the ellipse, in units normalized to the figure.

Y                            vertical dimension in normalized units

Horizontal dimension of the ellipse. This property specifies the vertical location of the center of the ellipse, in units normalized to the figure.


Previous page  Annotation Line Properties Annotation Textarrow Properties Next page

© 1994-2005 The MathWorks, Inc.