SetMinMax Method

Measurement Studio User Interface

SetMinMax Method

Syntax

CWAxis.SetMinMax Maximum, Minimum

Purpose

Sets both the minimum and the maximum values of the axis at the same time.

Remarks

Use this method to avoid setting a minimum value that is greater than the maximum, or a maximum value that is less than the minimum.

To make the axis appear inverted, set the Inverted property.

Parameters

Maximum As Variant

The new maximum value for the axis.

Minimum As Variant

The new minimum value for the axis.

Example

'Set the minimum and maximum values of the x axis
CWGraph1.Axes.Item(1).Minimum = 0
CWGraph1.Axes.Item(1).Maximum = 100

'Alternately, call SetMinMax to specify both values.
CWGraph1.Axes.Item(1).SetMinMax 0, 100

See Also

Minimum

Maximum

Inverted