%RECT Annotate Macro
Draws a rectangle with diagonal corners at two specified points.
| Updates: | XLAST, YLAST |
|---|---|
| Variables written out: | COLOR, FUNCTION, LINE, SIZE, X, Y |
| Requirement: | You must run the %ANNOMAC macro before using this or any of the other SAS/GRAPH annotate macros. See Making the Macros Available. |
Table of Contents
Syntax
Parameters
x1, y1
specify the coordinates of the first corner of the rectangle. Values can be numeric coordinates, numeric constants, or numeric variables.
| See | X Variable and Y Variable |
|---|
x2, y2
specify the coordinates of the second corner of the rectangle, which is drawn diagonal to the first corner. Values can be numeric coordinates, numeric constants, or numeric variables.
| See | X Variable and Y Variable |
|---|
color
specifies the color of the rectangular line using a character string without quotation marks. Use an asterisk (*) to specify the previous value of the color parameter.
| See | COLOR Variable |
|---|
line
specifies the rectangle's line type, which can be continuous or segmented. The value can be a number, a numeric constant, or a numeric variable.
| See | LINE Variable for the DRAW function for valid line values. |
|---|
size
specifies the width of the line. The value can be a number, a numeric constant, or a numeric variable.
| See | SIZE Variable for the DRAW function for valid size values. |
|---|
Details
The rectangle is drawn such that the first corner is diagonal to the second corner.
The %RECT macro produces rectangles that do not have fill patterns. Use the %BAR macro to generate filled rectangles. For more information, see %BAR, %BAR2 Annotate Macros..