Contents Previous Next Subchapters

Including A Grid In A Plot
Syntax gxgrid(grid type)
gygrid(
grid type)
See Also gxaxis(type, min, max, major, minor) ,
Menu Command Graphics | Axis | Grid . . .

Description
Controls the drawing of grid lines. If grid type is "major", grid lines are drawn at each major tick mark. If grid type is "minor", grid lines are drawn at each major and minor tick mark. (see major and minor to control the corresponding interval sizes). If grid type is "off", no grid lines are drawn (this is the default setting).

Example
If you enter
     ginit
     x  =  0. : .1 : 10
     y  =  5. - abs(x - 5.)
     gplot(x, y)
     gxaxis("linear", 0, 10, 5, 2)
     gyaxis("linear", 0, 10, 5, 2)
     gxgrid("minor")
     gygrid("major")
O-Matrix will draw a plot with 1 unit between the x grid line and 2 units between the y grid lines.