MajorUnitsBase Property

Measurement Studio User Interface

MajorUnitsBase Property

Syntax

CWTicks.MajorUnitsBase

Data Type

Variant

Purpose

Specifies the base number for calculating ticks.

Remarks

When ticks are spaced by units, ticks are placed at locations that fit the following equation:

MajorUnitsBase + (n * MajorUnitsInterval)

where n is any integer.

Example

'Specify that ticks are determined by MajorUnitsInterval
CWGraph1.Axes(1).Ticks.MajorDivisions = 0

'Place major ticks every 2 units (even numbers)
CWGraph1.Axes(1).Ticks.MajorUnitsInterval = 2

'Place minor ticks every .5 units
CWGraph1.Axes(1).Ticks.MinorUnitsInterval = .5

'The units base is 0
CWGraph1.Axes(1).Ticks.MajorUnitsBase = 0

'To specify ticks at odd numbers, change the base to 1
CWGraph1.Axes(1).Ticks.MajorUnitsBase = 1

'Now, there will be major ticks at ..., -3, -1, 1, 3, 5, ...

See Also

MajorUnitsInterval

MinorUnitsInterval

MajorDivisions