Skip to content

Axis Class

The Axis class represents an axis on a graph. It can be used to customize the axis style and representation.


Public Constants

LABEL_NUMBERS
LABEL_VALUES
ORDER_DECREASING
ORDER_INCREASING
SCALE_LINEAR
SCALE_LOGARITHMIC
TICK_HORIZONTAL
TICK_VERTICAL


Public Properties

color
dateformat
hidden
label
labelcolor
labelvalues
max
min
order
scale
stepsize
subdivisions
tickorient
zoomlock


Public Functions

move(position)


Detailed Properties Descriptions

color

color

Change the color of the axis and tick marks.

dateformat

dateformat

The axis date format (apply only for dated X axes). See for (see DateManager)

hidden

hidden

Change the visibility.

label

label

Change the axis label.

labelcolor

labelcolor

Change the color of the label.

labelvalues

labelvalues

For label axes, display either labels (LABEL_VALUES) or numbers (LABEL_NUMBERS)

max

max

Maximum limit.

min

min

Minimum limit.

order

order

The direction (ORDER_INCREASING or ORDER_DECREASING) of the axis.

scale

scale

The scale (SCALE_LINEAR or SCALE_LOGARITHMIC) of the axis.

stepsize

stepsize

Step size.

subdivisions

subdivisions

Subdivisions between ticks.

tickorient

tickorient

The direction (TICK_VERTICAL or TICK_HORIZONTAL) of the tick labels.

zoomlock

zoomlock

Lock the axis to block zooming.


Detailed Constants descriptions

LABEL_NUMBERS

LABEL_NUMBERS

Display numbers of label axes

LABEL_VALUES

LABEL_VALUES

Display label of label axes

ORDER_DECREASING

ORDER_DECREASING

Axis in decreasing direction

ORDER_INCREASING

ORDER_INCREASING

Axis in increasing direction

SCALE_LINEAR

SCALE_LINEAR

Axis in linear scale

SCALE_LOGARITHMIC

SCALE_LOGARITHMIC

Axis in logarithmic scale

TICK_HORIZONTAL

TICK_HORIZONTAL

Ticks in horizontal orientation

TICK_VERTICAL

TICK_VERTICAL

Ticks in vertical orientation


Detailed Functions Descriptions

move

move(position)

Move the axis closest or furthest from the plot area.

Parameters :

  • position : The position of the axis (CLOSEST or FURTHEST)