AxisGridSpacing

The axis grid spacing properties.

Example

app = pf.GetApplication()
app:NewProject()
graph = app.CartesianGraphs:Add()

    -- Set horizontal display range

graph.HorizontalAxis.Range.AutoRangeEnabled = false
graph.HorizontalAxis.Range.Min = 0
graph.HorizontalAxis.Range.Max = 1

    -- Set grid spacing
    
graph.HorizontalAxis.MajorGrid.AutoSpacingEnabled = false
graph.HorizontalAxis.MajorGrid.Spacing = 0.25

Usage locations

The AxisGridSpacing object can be accessed from the following locations:

Property List

AutoSpacingEnabled
Use automatically generated major grid spacing for the axis. (Read/Write boolean)
Spacing
Major axis grid spacing. (Read/Write number)

Property Details

AutoSpacingEnabled
Use automatically generated major grid spacing for the axis.
Type
boolean
Access
Read/Write
Spacing
Major axis grid spacing.
Type
number
Access
Read/Write