GGRID Call
draws a grid
- CALL GGRID( , , style<, color<,
window<, viewport>);
The inputs to the GGRID subroutine are as follows:
- and
- are vectors of points used to draw sequences 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 refers to the 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 GGRID subroutine draws a sequence of vertical and horizontal
lines specified by the
and
vectors, respectively.
The start and end of the vertical lines are implicitly
defined by the minimum and maximum of the
vector.
Likewise, the start and end of the horizontal lines are
defined by the minimum and maximum of the
vector.
The grid lines are drawn in the same color and line style.
The coordinates in use for this
graphics command are world coordinates.
For example, use the following statements to place
a grid in the lower-left corner of the screen:
x={10,20,30,40,50};
y=x;
/* The following GGRID command places a GRID */
/* in the lower left corner of the screen, */
/* assuming the default window and viewport */
call ggrid(x,y);
call gshow;
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.