Command: grid

Syntax

grid { <window> }

Description

Draw a grid, or turn the auto-grid feature on or off.

Parameters

Switches

Notes

If the window is not currently in use, or is not a graphic window, no action is taken.

The grid is drawn automatically if the -on switch is present or if there are no switches present.

Using specific options will change only those particular settings, but when accompanied by the -on switch, all other settings will revert to their default values for a new grid.

Examples

Draw a default grid in window 1.

grid win1

Turn the auto-grid on for all views.

grid my_win,-on,-x=10,-y=20,-ord,-oc=all,-col=green

Just change one setting.

grid my_win, -y=10

See Also

Commands:

color, linestyle, markerstyle, vane

Identifiers:

grid, window (graphic)

Structures:

window.grid_layer, window.layers