DRAW Statement

DRAW Statement Summary

The nested DRAW statements within a BEGINPOLYLINE block specify a series of points for a polyline. 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 BEGINPOLYLINE statement. You can specify as many DRAW statements as needed to complete the polyline.
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 polyline.
Interaction: The value that is set for this argument is interpreted using the XSPACE= option. When XSPACE=DATAVALUE, the value is interpreted using the BEGINPOLYLINE statement’s XAXIS= option.
Y=constant | scalar-expression
specifies the Y value for one point in a polyline.
Interaction: The value that is set for this argument is interpreted using the YSPACE= option. When YSPACE=DATAVALUE, the value is interpreted using the BEGINPOLYLINE 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.