DRAW Statement

DRAW Statement Summary

The nested DRAW statements within a BEGINPOLYGON block specify a series of points for a polygon. Each DRAW statement draws a straight line from the previous point to the endpoint that is specified in the DRAW statement's X and Y arguments. The first DRAW statement starts its line from the X,Y point that is specified in the BEGINPOLYGON statement.
You can specify as many DRAW statements as needed to complete the polygon. If the last DRAW statement does not end at the first point in the polygon (specified in BEGINPOLYGON), then a line is automatically generated to close the polygon shape.
Each DRAW statement uses the following general syntax:
DRAW X=constant | scalar-expression
Y=constant | scalar-expression </option(s)>;
For a specific example, see the Example Program.

DRAW Statement Arguments

X=constant | scalar-expression
specifies the X value for one point in a polygon.
Interaction: The value that is set for this argument is interpreted using the XSPACE= option. When XSPACE=DATAVALUE, the value is interpreted using the BEGINPOLYGON statement’s XAXIS= option.
Y=constant | scalar-expression
specifies the Y value for one point in a polygon.
Interaction: The value that is set for this argument is interpreted using the YSPACE= option. When YSPACE=DATAVALUE, the value is interpreted using the BEGINPOLYGON statement’s YAXIS= option.

DRAW Statement Options

Statement Option
Description
Specifies a default drawing space and drawing units for the drawn lines.
Specifies the drawing space and drawing units for interpreting the X value.
Specifies the drawing space and drawing units for interpreting the Y value.