Axis

The axis object represents a horizontal or vertical axis of a chart.  The axis must be selected into the Chart object using SetAxis, and also added to the Chart object using AddObject.

Properties:

TranslateReverse

Type: Boolean (Default = False)

 

Description: True if the axis should be drawn with the coordinates reversed relative to the pixel coordinate space.  For example if Y axis values increase from bottom to top, then this property should be set to True.

 

TickSize

Type: Integer

 

Description: Size of major ticks, in pixels.  Set to zero if no ticks should be drawn.

 

MinorTickSize

Type: Integer

 

Description: Size of minor ticks, in pixels.  Set to zero if no ticks should be drawn.

 

AutoAdjustRange

Type: Boolean (Default = False)

 

Description: Whether the axis range should be automatically recalculated based on the chart data.

 

LabelFormat

Type: String

 

Description: The label format, in sprintf syntax.  Must use "lf" as the data specifier, for example "%0.4lf" for four decimal places.

 

FontSize

Type: Integer

 

Description: Font size of the automatic axis labels, in points.  Set to 0 if no labels should be displayed automatically.

Methods:

SetRange(low, high)

low, high: Real

 

Description: Set the absolute axis range.  Note that if AutoAdjustRange is set to True these values are ignored.