GrADS Command: set grid

## set grid

`set grid status <linestyle> <color#>`

Specifies the characteristics of the displayed grid lines. Default is to draw horizontal and vertical grid lines with color number 15 (grey) and linestyle 5 (dotted).

Options for `status` are:

`on` - both latitude and longitude lines are drawn
`off` - no grid lines lines are drawn
`horizontal` - only latitude grid lines are drawn
`vertical` - only longigude grid lines are drawn

Options for `linestyle` are:

`1` - solid
`2` - long dash
`3` - short dash
`4` - long dash, short dash
`5` - dotted
`6` - dot dash
`7` - dot dot dash

`color#` may be one of the 16 GrADS default colors or a new color defined with `set rgb`.

### Usage Notes

1. Changes to the grid display characteristics 'stick' until reset by a new execution of `set grid`.

2. You cannot specify a `color#` without also specifying a `linestyle`.

3. Grid lines are aligned with the labeled tick marks on the X and Y axes. GrADS chooses appropriate defaults for spacing of the labeled tick marks, but these defaults may be overridden by the commands set xaxis, set yaxis, set xlint, set ylint, set xlevs, and set ylevs. Please consult these reference pages for more information.

### Examples