SAS Institute. The Power to Know

SAS/GRAPH(R) 9.2: ODS Graphics Editor User's Guide

Understanding Annotation Concepts

Annotation objects use one of the following two coordinate systems:
Data Coordinate System
This system is based on the data in the plot area, which is the region within the axes. The range of data of a data set variable plotted along an axis forms the data range for that axis. Suppose that the variable “Height” has observations between 55 and 75 and is plotted along the X axis. The data range along the width of the plot area is about 55 to 75. An annotation object drawn in the middle of the plot area has an X coordinate of about 65.
Percent Coordinate System
This system covers the area of the graph from 0% to 100%. The origin is at the upper left corner of the graph, with a value of (0, 0). The lower right corner of the graph has the value (100, 100).
Annotation objects can be attached to a graph data point, depending on which coordinate system the annotation uses. If the graph is resized, the annotations move with the data point.
When an annotation object (except an image) is first created, its default coordinate system and value are determined based on its initial location as follows:
Location Determines the Default Coordinate System
Location
Coordinate System and Behaviors
Created in the plot area
By default, the data coordinate system is used for all annotations except images. The coordinate value is based on the relative location of the annotation with other data observations in the plot.
If the plot area of the graph changes due to the addition or removal of titles, footnotes, and so on, the annotation moves along with the data observations. The annotation location is synchronized with the data.
By default, any part of the annotation that extends outside the plot area is cropped.
Lines are attached to data individually at each end. When you draw a new line, one end might exist in the plot area and the other end might exist outside the plot area. The end that resides in the plot area attaches to a data point. If the graph is resized, the attached end stays with the data point.
Three dimensional plots, such as a surface plot, do not support the data coordinate system. These plots always use the percent coordinate system.
You can move objects from the data system to the percent system, and you can make an object visible outside the plot area. For details, see Change the Data Attachment Properties of an Annotation.
Created outside plot area
By default, the percent coordinate system is used. The coordinate value for the annotation object is based on the location of the annotation with respect to the full size of the graph, in percentage values.
Any graph relayout that occurs due to the addition or removal of titles and footnotes has no effect on the object. If the graph is resized, the annotations maintain their position relative to the entire graph.
Image annotations are always created in the percent coordinate system. This behavior cannot be changed.