# Macro Language: Axis Style Commands

`setaxis <x axis 1> <y axis 1> <x axis 2> <y axis 2>`

Enable or disable axis drawing (possible values: yes/no)

`ascalstart <AXIS> <start>`

Defines where axis scaling should start.

`ascalend <AXIS> <end>`

Defines where axis scaling should end.

`asetreverse <AXIS> <bool>`

If set the axis will be reverse plotted (possible values: yes/no)

`atickdist <AXIS> <dist>`

Defines the distance between two major ticks. If your axis is a time axis you have to enter `days:hours:minutes:seconds` or `w` (1 week) or `m` (1 month) or `y` (1 year).

`aminsteps <AXIS> <steps>`

Defines the number of minor ticks between two major ticks.

`atimeformat <AXIS> <format>`

Defines the format used for the displaying time values on time axis (time format tokens).

`atrigger <AXIS> <trigger>`

This allows to define a trigger, a number where a tick should appear and all other ticks should depend on.

`ascalexpr <AXIS> <expr>`

This allows scaling of axis numbers without changing the data itself. For example, to display seconds instead of milliseconds enter `v/1000` in this field. v is the variable which represents the axis number.

`aexpoffset <AXIS> <offset>`

Allows you to define the limit, above which numbers are plotted in exponential notation. The number you define is the exponent of the limit.

`adecplaces <AXIS> <n>`

Defines the number of decimal places for axis numbers.

`adecplacesauto <AXIS> <bool>`

If enabled the number of decimal places for axis numbers will be determined automatically (possible values: yes/no).

`aformat <AXIS> <format>`

Defines the axis format (0=linear, 1=logarithmic, 2=time).

`asetsmalllogzero <AXIS> <bool>`

If enabled the smallest value on a logarithmic axis will be replaced with 0 (even if this is not correct) (possible values: yes/no).

`atext <AXIS> <text>`

Defines the axis text label.

`anumfont <AXIS> <font> <size>`

Defines the font for axis numbers.

`anumoffset <AXIS> <offset>`

The distance between numbers and frame.

`anumalign <AXIS> <align>`

Defines the alignment of axis numbers.
`<align>`: The text box alignment.

`anumangle <AXIS> <angle>`

Defines the angle for axis numbers.

`atextfont <AXIS> <font> <size>`

Defines the font for axis text labels.

`atextoffset <AXIS> <offset>`

The distance between text label and frame.

`atextoffsetwindow <AXIS> <bool>`

If defined the axis text offset is the distance from the window frame.

`asetnum <AXIS> <bool>`

Enable or disable axis numbers (possible values: yes/no).

`asettext <AXIS> <bool>`

Enable or disable axis text labels (possible values: yes/no).

`asetfliptext <AXIS> <bool>`

Enable or disable flipped axis text labels (possible values: yes/no).

`atextcolor <AXIS> <c> <c> <c> [a]`
`atextcolor <AXIS> <COLOR>`

Defines the color for axis numbers and text. Dependent on the color mode the three values are RGB or HSB values from 0.0 to 1.0. The color mode can be set with the command color mode (0=RGB, 1=HSB). With a the alpha value can be defined (default is 1.0). Alternative you can specify the color as hexadecimal string.

`asetzeroline <AXIS> <bool>`

Enable or disable a line at the value zero (possible values: yes/no).

`azerolinecolor <AXIS> <c> <c> <c> [a]`
`azerolinecolor <AXIS> <COLOR>`

Defines the color for zero lines. Dependent on the color mode the three values are RGB or HSB values from 0.0 to 1.0. The color mode can be set with the command color mode (0=RGB, 1=HSB). With a the alpha value can be defined (default is 1.0). Alternative you can specify the color as hexadecimal string.

`aticklength <AXIS> <length>`

Defines the tick length.

`aminticklength <AXIS> <length>`

Defines the minor tick length.

`atickwidth <AXIS> <width>`

Defines the tick width.

`amintickwidth <AXIS> <width>`

Defines the minor tick width.

`asetticks <AXIS> <bool>`

Enable or disable axis ticks (possible values: yes/no).

`asetminticks <AXIS> <bool>`

Enable or disable axis minor ticks (possible values: yes/no).

`asetticksbothsides <AXIS> <bool>`

Enable or disable axis ticks on both sides of the frame (possible values: yes/no).

`asetminticksbothsides <AXIS> <bool>`

Enable or disable axis minor ticks on both sides of the frame (possible values: yes/no).

`atickcolor <AXIS> <c> <c> <c> [a]`
`atickcolor <AXIS> <COLOR>`

Defines the tick color. Dependent on the color mode the three values are RGB or HSB values from 0.0 to 1.0. The color mode can be set with the command color mode (0=RGB, 1=HSB). With a the alpha value can be defined (default is 1.0). Alternative you can specify the color as hexadecimal string.

`amintickcolor <AXIS> <c> <c> <c> [a]`
`amintickcolor <AXIS> <COLOR>`

Defines the minor tick color. Dependent on the color mode the three values are RGB or HSB values from 0.0 to 1.0. The color mode can be set with the command color mode (0=RGB, 1=HSB). With a the alpha value can be defined (default is 1.0). Alternative you can specify the color as hexadecimal string.

`amintickcolor <AXIS> <c> <c> <c> [a]`
`amintickcolor <AXIS> <COLOR>`

Defines the minor tick color. Dependent on the color mode the three values are RGB or HSB values from 0.0 to 1.0. The color mode can be set with the command color mode (0=RGB, 1=HSB). With a the alpha value can be defined (default is 1.0). Alternative you can specify the color as hexadecimal string.

`atickstyle <AXIS> <style>`

Defines the tick style (0=inside, 1=outside, 2=both)

`asetgrid <AXIS> <bool>`

Enable or disable the grid (possible values: yes/no).

`asetmingrid <AXIS> <bool>`

Enable or disable the minor grid (possible values: yes/no).

`agridcolor <AXIS> <c> <c> <c> [a]`
`agridcolor <AXIS> <COLOR>`

Defines the grid color. Dependent on the color mode the three values are RGB or HSB values from 0.0 to 1.0. The color mode can be set with the command color mode (0=RGB, 1=HSB). With a the alpha value can be defined (default is 1.0). Alternative you can specify the color as hexadecimal string.

`amingridcolor <AXIS> <c> <c> <c> [a]`
`amingridcolor <AXIS> <COLOR>`

Defines the minor grid color. Dependent on the color mode the three values are RGB or HSB values from 0.0 to 1.0. The color mode can be set with the command color mode (0=RGB, 1=HSB). With a the alpha value can be defined (default is 1.0). Alternative you can specify the color as hexadecimal string.

`agridwidth <AXIS> <width>`

Defines the grid width.

`amingridwidth <AXIS> <width>`

Defines the minor grid width.

`agridpattern <AXIS> <pattern>`

Defines the grid dash pattern (0-15).

`amingridpattern <AXIS> <pattern>`

Defines the minor grid pattern (0-15).

`agridfront <AXIS> <bool>`

Defines if the grid should be drawn in front or not (possible values: yes/no).

`amingridfront <AXIS> <bool>`

Defines if the minor grid should be drawn in front or not (possible values: yes/no).

`alabel <AXIS> <number> <replacement>`

Defines an axis number replacement

`aclearlabels <AXIS>`

Delete all axis number replacement