| Contents | Index |
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. For an example of its use, see Positioning Annotations in Data Space in the MATLAB Graphics documentation.
This section provides a description of properties. Curly braces { } enclose default values.
ColorSpec
Color of the object. A three-element RGB vector or one of the MATLAB predefined names, specifying the object's color. The default value is [0 0 0] (black).
See the ColorSpec reference page for more information on specifying color. See Adding Arrows and Lines to Graphs.
size in points
Length of first arrowhead. Specify in points.1 point = 1/72 inch. The default value is 10.
The first arrowhead is located at the end defined by the point x(1), y(1).
See also the Head1Style, Head1Width, X and Y properties.
size in points
Length of second arrowhead. Specify in points.1 point = 1/72 inch. The default value is 10.
The first arrowhead is located at the end defined by the point x(end), y(end).
See also the Head1Style, Head1Width, X and Y properties.
string
Style of first arrowhead. Specify this property as one of the strings from the following table.
See also Head1Width, Head1Length, and LineWidth.
string
Style of second arrowhead. Specify this property as one of the strings shown in the table for the Head1Style property.
See also Head2Width, Head2Length, LineWidth.
size in points
Width of first arrowhead. Specify in points.1 point = 1/72 inch. See also Head1Length.
size in points
Width of second arrowhead. Specify in points.1 point = 1/72 inch. See also Head2Length.
{-} | -- | : | -. | none
Style of arrow stem.
See also Head1Style, Head1Length, and LineWidth.
size in points
Width of arrow stem. Specify in points.1 point = 1/72 inch. The default is 0.5 points.
four-element vector [x, y, width, height]
Size and location of the object. Specify the lower left corner of the object with the first two elements of the vector defining the point x, y in units normalized to the figure (when Units property is normalized). width and height specify the object's dx and dy, respectively, in units normalized to the figure. The default value is [0.3 0.3 0.1 0.1].
{normalized} | inches | centimeters | characters | points | pixels
Position units. MATLAB uses this property to determine the units used by the Position property. All positions are measured from the lower left corner of the figure window.
normalized — Interpret Position as a fraction of the width and height of the parent axes. When you resize the axes, MATLAB modifies the size of the object accordingly.
pixels, inches, centimeters, and points — Absolute units. 1 point = 1/72 inch.
characters — Based on the size of characters in the default system font. The width of one characters unit is the width of the letter x, and the height of one characters unit is the distance between the baselines of two lines of text.
vector [Xbegin Xend]
x-coordinates of beginning and ending points for line. A vector of x-axis (horizontal) values specifying the beginning and ending points of the line, units normalized to the figure. The default value is [0.3 0.4].
vector [Ybegin Yend]
y-coordinates of beginning and ending points for line. A vector of y-axis (vertical) values specifying the beginning and ending points of the line, units normalized to the figure. The default value is [0.3 0.4].

Explore how to use MATLAB to make advancements in engineering and science.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |