Drawing Grids

The GRID command draws a grid anywhere on the display. GRID speci￿es the size and number of squares forming the grid. Use the PA command to position the lower-left corner of the grid. LINET and PEN may be used to modify the grid lines. The following example places a

￿ve-division-by-four-division grid in the upper right quadrant of the display. (GRID does not work after DWINDOW ON is executed.)

100

OUTPUT

723;"PU;PA 500,500;PD;"

Position pen at center of display .

110

OUTPUT

723;"GRID 100,125,5,4;"

Draw 5 by 4 division grid.

Illustration of the Drawn Grid

5-10