Node:axis, Previous:coord, Up:area



Axes

Module axis defines the look of an axis as well as grid lines. Two classes, axis.X and axis.Y, are provided by this module.

axis.X

draw_tics_above type: int Attribute
Default: 0. If true, tick lines and labels are drawn above the axis line.

format type: printf format string Attribute
Default: "%s". The format string for tick labels. It can be a `printf' style format string, or a single-parameter function that takes an X (or Y) value and returns a string. The appearance of the string produced here can be controlled using escape sequences. See font.

label type: str Attribute
Default: "axis label". The descriptive string displayed below (or in the left of) the axis. See font..

label_offset type: (x,y) or None Attribute
Default: (None, None). The location for drawing the axis label, relative to the middle point of the axis. If the value is None, the label is displayed below (or in the left of) of axis at the middle.

line_style type: line_style.T Attribute
Default: line_style.black. Specifies the style of axis and tick lines. See line_style.. See line_style.

minor_tic_interval type: Number or function Attribute
Default: None. When the value is a number, it specifies the interval at which minor tick marks are drawn. Otherwise, the value must be a function that takes no argument and returns the list of numbers. The return value specifies the X or Y points at which minor tick marks are drawn.

minor_tic_len type: number Attribute
Default: 3. The length of minor tick marks. The value can be negative, in which case the tick lines are drawn right of (or above) the axis.

offset type: number Attribute
Default: 0. The location of the axis. The unit is points. The value of 0 draws the axis at the left (for the Y axis) or bottom (for the X axis) edge of the drawing area.

tic_interval type: Number or function Attribute
Default: None. When the value is a number, it specifies the interval at which tick marks are drawn. Otherwise, the value must be a function that takes no argument and returns the list of numbers. The return value specifies the X or Y points at which tick marks are drawn.

tic_label_offset type: (x,y) Attribute
Default: (0, 0). The location for drawing tick labels, relative to the tip of the tick line.

tic_len type: number Attribute
Default: 6. The length of tick lines. The value can be negative, in which case the tick lines are drawn right of (or above) the axis.

axis.Y

draw_tics_right type: int Attribute
Default: 0. If true, tick lines and labels are drawn right of the axis line.

format type: printf format string Attribute
Default: "%s". The format string for tick labels. It can be a `printf' style format string, or a single-parameter function that takes an X (or Y) value and returns a string. The appearance of the string produced here can be controlled using escape sequences. See font.

label type: str Attribute
Default: "axis label". The descriptive string displayed below (or in the left of) the axis. See font..

label_offset type: (x,y) or None Attribute
Default: (None, None). The location for drawing the axis label, relative to the middle point of the axis. If the value is None, the label is displayed below (or in the left of) of axis at the middle.

line_style type: line_style.T Attribute
Default: line_style.black. Specifies the style of axis and tick lines. See line_style.. See line_style.

minor_tic_interval type: Number or function Attribute
Default: None. When the value is a number, it specifies the interval at which minor tick marks are drawn. Otherwise, the value must be a function that takes no argument and returns the list of numbers. The return value specifies the X or Y points at which minor tick marks are drawn.

minor_tic_len type: number Attribute
Default: 3. The length of minor tick marks. The value can be negative, in which case the tick lines are drawn right of (or above) the axis.

offset type: number Attribute
Default: 0. The location of the axis. The unit is points. The value of 0 draws the axis at the left (for the Y axis) or bottom (for the X axis) edge of the drawing area.

tic_interval type: Number or function Attribute
Default: None. When the value is a number, it specifies the interval at which tick marks are drawn. Otherwise, the value must be a function that takes no argument and returns the list of numbers. The return value specifies the X or Y points at which tick marks are drawn.

tic_label_offset type: (x,y) Attribute
Default: (0, 0). The location for drawing tick labels, relative to the tip of the tick line.

tic_len type: number Attribute
Default: 6. The length of tick lines. The value can be negative, in which case the tick lines are drawn right of (or above) the axis.