# 3.7.5.31 Layer.Axis.Grid

LabTalk Object Type:

Window

The grid object is a sub-object of the (layer) axis object. It is also a window object. And axis is a sub-object of layer object. You can use range notation to define a layer object:

range layerObject = [pageName]layerName!

And then access the axis object by:

layerObject.Axis.grid.property

Where Axis is the axis specification: X is the bottom X axis, X2 is the top X axis, Y is the left Y axis, Y2 is the right Y axis, Z is the front Z axis, Z2 is the back Z axis, Zh is the ZhX axis, Zh2 is the back ZhY axis, and Zh3 is the back ZhZ axis.

Or use the following syntax:

[winName!]layer[n].axis.grid.property =

Where,

WinName! is optional. If winName! is not specified, grids in the active graph window are affected.

N is the layer number. If n is not specified, the active layer is used.

Axis is the axis specification: X is the bottom X axis, X2 is the top X axis, Y is the left Y axis, Y2 is the right Y axis, Z is the front Z axis, Z2 is the back Z axis, Zh is the ZhX axis, Zh2 is the back ZhY axis, and Zh3 is the back ZhZ axis.

## Properties:

Property Access Description
numeric

Major grid line color. Numbers from the color list, or transparent (0). The color( ) function can be used, as in: .majorcolor = color(blue)

numeric

Major grid line type number: 1 = solid, 2 = dash, 3 = dot, etc., from the Line Type drop down list.

numeric

Width of the major grid lines in points.

numeric

Minor grid line color. Numbers from the color list, or transparent (0). The color( ) function can be used, as in: .minorcolor = color(blue)

numeric

Minor grid line type number: 1 = solid, 2 = dash, 3 = dot, etc., from the Line Type drop down list.

Layer3.x.grid.majorwidth =
Graph3!layer1.y.grid.minorcolor = color(purple);