## GDRAWL Call

**draws individual lines**
**CALL GDRAWL(** *xy*1, *xy*2<, style><, color><,
window><, viewport>**);**

The inputs to the GDRAWL subroutine are as follows:
*xy*1
- is a matrix of points used to draw a sequence of lines.

*xy*2
- is a matrix of points used to draw a sequence of lines.

*style*
- is a numeric matrix or literal that specifies
an index corresponding to a valid line style.

*color*
- is a valid SAS color, where
*color* can be
specified as a quoted text string (such as 'RED'),
the name of a character matrix containing a valid
color as an element, or a color number (such as 1).
A color number *n* refers to the *n*th color in the color list.

*window*
- is a numeric matrix or literal specifying a window.
This is given in world coordinates and has the form

| {*minimum-x minimum-y maximum-x maximum-y*} |

*viewport*
- is a numeric matrix or literal specifying a viewport.
This is given in normalized coordinates and has the form

| {*minimum-x minimum-y maximum-x maximum-y*} |

The GDRAWL subroutine draws a sequence of lines
specified by their beginning and ending points.
The matrices *xy*1 and *xy*2 must have
the same number of rows and columns.
The first two columns (other columns are ignored) of
*xy*1 give the *x*,*y* coordinates of the beginning points
of the line segment, and the first two columns of *xy*2
have *x*,*y* coordinates of the corresponding end points.
If *xy*1 and *xy*2 have *n* rows, *n* lines are drawn.
The first line is from (*xy*1(1,1),*xy*1(1,2))
to (*xy*2(1,1),*xy*2(1,2)).
The lines are drawn in the same color and line style.
The coordinates in use for this
graphics command are world coordinates.
An example using the GDRAWL call follows:
/* line from (25,25) to (50,50) - x and y take */
/* default window range of 0 to 100 */
call gdrawl({25 25},{50 50});
call gshow;

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.