Documentation Center

  • Trials
  • Product Updates

Annotation Doublearrow Properties

Define annotation doublearrow 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. For an example of its use, see Annotation Objects in the MATLAB® Graphics documentation.

Annotation Doublearrow Property Descriptions

This section provides a description of properties. Curly braces { } enclose default values.

Color

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.

Head1Length

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.

Head2Length

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.

Head1Style

string

Style of first arrowhead. Specify this property as one of the strings from the following table.

 Arrow Head Style Table

See also Head1Width, Head1Length, and LineWidth.

Head2Style

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.

Head1Width

size in points

Width of first arrowhead. Specify in points.1 point = 1/72 inch. See also Head1Length.

Head2Width

size in points

Width of second arrowhead. Specify in points.1 point = 1/72 inch. See also Head2Length.

LineStyle

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

Style of arrow stem.

 Line Style Specifiers Table

See also Head1Style, Head1Length, and LineWidth.

LineWidth

size in points

Width of arrow stem. Specify in points.1 point = 1/72 inch. The default is 0.5 points.

Position

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].

Units

{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.

X

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].

Y

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].

See Also

Was this topic helpful?