Class: Axis
Prev
Next

Class: Axis

A class representing a plot axis.

Methods:

Properties:

void scaleAuto ( )

Sets the scale mode to Auto.

void scaleAutoSpikeInsensitive ( )

Sets the scale mode to Auto Spike Insensitive.

void scaleExpression ( string minExp, string maxExp )

  • string minExp - The expression for the minimum of the scale.

  • string maxExp - The expression for the maximum of the scale.

Sets the scale mode to Expression.

void scaleRange ( number min, number max )

  • number min - The value for the minimum of the scale.

  • number max - The value for the maximum of the scale.

Sets the scale mode to Fixed and sets the range.

boolean log

True if the axis is in logarithm mode.

boolean suppressed

True if this axis is suppressed.

boolean oppositeSuppressed

True if the opposite axis is suppressed. (Right X or top Y)

number offsetMode

The base + offset mode. Value must be one of:

  • 0 - Automatic

  • 1 - On

  • 2 - Off

For backwards compatibility the value can also be set as a boolean, in which case true corresponds to On and false corresponds to Automatic.

boolean reversed

True if this axis is reversed.

boolean majorGridLines

True if this axis shows major grid lines.

boolean minorGridLines

True if this axis shows minor grid lines.

string transformation

The transformation expression for this axis.

boolean innerTicks

True if tick marks are displayed inside the plot.

boolean outerTicks

True if tick marks are displayed outside the plot.

string label

The label for this axis.

string type [Read-Only]

The type of axis - X or Y presently.

string majorGridColor

The color for the major grid lines.

string minorGridColor

The color for the minor grid lines.

number minorTickCount

The number of minor ticks between two major ticks. The special value -1 forces Kst to determine this automatically.

number majorTickDensity

The density of major tick markers along this axis. Value must be one of:

  • 0 - Coarse

  • 1 - Default

  • 2 - Fine

  • 3 - Very Fine

number scaleMode [Read-Only]

The type of scaling done on the axis. Value is one of:

  • 0 - Auto

  • 1 - All Curves (By Midpoint)

  • 2 - Fixed

  • 3 - Auto Up (Only Scales Upward)

  • 4 - Auto (Spike Insensitive)

  • 5 - Auto (obsolete, same as 0)

  • 6 - Expression Based

TimeInterpretation interpretation [Read-Only]

The method with which the axis is interpreted and times are displayed.

AxisLabel title

The label for this axis.

AxisTickLabel tickLabel

The tick label for this axis.

Prev
Next
Home


Would you like to make a comment or contribute an update to this page?
Send feedback to the KDE Docs Team