Products & Services Industries Academia Support User Community Company

Learn more about MATLAB   

Annotation Arrow Properties - Define annotation arrow 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 Positioning Annotations in Data Space in the MATLAB Graphics documentation.

Annotation Arrow Property Descriptions

Properties You Can Modify

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

Color

ColorSpec

Color of the object. A three-element RGB vector or one of the MATLAB predefined names, specifying the object's color.

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

HeadLength

scalar value in points

Length of the arrowhead. Specify this property in points (1 point = 1/72 inch). See also HeadWidth.

HeadStyle

select string from list

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

Head Style String

Head

Head Style String

Head

none

 

star4

plain

rectangle

ellipse

diamond

vback1

rose

vback2 (Default)

hypocycloid

vback3

astroid

cback1

deltoid

cback2

 

cback3

 

HeadWidth

scalar value in points

Width of the arrowhead. Specify this property in points (1 point = 1/72 inch). See also HeadLength.

LineStyle

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

Line style. This property specifies the line style of the object. 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 linear objects and edges of filled areas. Specify this value in points (1 point = 1/72 inch). The default LineWidth 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). The third and fourth elements specify the object's dx and dy, respectively, in units normalized to the figure.

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 units 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 are absolute units (1 point = 1/72 inch). Units of characters are based on the size of characters in the default system font. The width of one character unit is the width of the letter x, the height of one character unit is the distance between the baselines of two lines of text.

X

vector [Xbegin Xend]

X-coordinates of the beginning and ending points for line. Specify this property as a vector of x-axis (horizontal) values that specify the beginning and ending points of the line, units normalized to the figure.

Y

vector [Ybegin Yend]

Y-coordinates of the beginning and ending points for line. Specify this property as a vector of y-axis (vertical) values that specify the beginning and ending points of the line, units normalized to the figure.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS