Graphics Previous page   Next Page

Annotation Objects

Users typically create annotation objects from the Plot Edit toolbar or the Insert menu (select Plot Edit in the View menu to display the Plot Edit toolbar). However, you can also create annotation objects using the annotation function.

Annotation objects are created in a hidden axes that extends the full width and height of the figure. This enables you to specify the locations of annotation objects anywhere in the figure using normalized coordinates (the lower left corner is the point 0,0, the upper right corner is the point 1,1).

Annotation Object Properties

The following links access descriptions of the properties you can set on the respective annotation objects.

To modify the appearance of annotation objects created with the plotting tools, use the Property Editor.

Example -- Enclosing Subplots with an Annotation Rectangle

The following example shows how to create a rectangle annotation object and use it to highlight two subplots in a figure. This example uses the axes properties Position and TightInset to determine the location and size of the annotation rectangle.

  1. First create an array of subplots.
  2. Determine the location and size of the annotation rectangle required to enclose axes, tick mark labels, and title using the axes Position and TightInset properties.
  3. Create the annotation rectangle to enclose the lower two subplots. Make the rectangle a translucent red with a solid border.

Previous page  Plot Objects and Backward Compatibility Group Objects Next page

© 1994-2005 The MathWorks, Inc.