Previous Page | Next Page

Annotate Dictionary

%RECT Macro



Draws a rectangle with diagonal corners at two specified points.
Variables written out: COLOR, FUNCTION, LINE, SIZE, X, Y
Internal variables updated: XLAST, YLAST
Prerequisite: You must run the %ANNOMAC macro before using any other annotate macros. For more information, see Making the Macros Available.

Syntax
Details

Syntax

%RECT (x1, y1, x2, y2, color, line, size) ;

x1, y1

specify the coordinates of the first corner of the rectangle. Values can be numeric coordinates, numeric constants, or numeric variables. For details, see the Annotate X 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.

color

specifies the color of the rectangular line using a character string without quotation marks. For valid values, see the Annotate COLOR Variable. Use an asterisk (*) to specify the previous value of the color parameter.

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. For details, see the Annotate LINE Variable for the DRAW function.

size

specifies the width of the line. The value can be a number, a numeric constant, or a numeric variable. For valid values, see the SIZE Variable for the DRAW function.


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

Previous Page | Next Page | Top of Page