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
XXX %%axis.X

format 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 str Attribute
Default: "axis label". The descriptive string displayed below (or in the left of) the axis. See font..

label_offset (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 <class 'pychart.line_style.T'> Attribute
Default: line_style.black. Specifies the style of axis and tick lines. See line_style..

minor_tic_interval 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 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 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 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 (x,y) Attribute
Default: (0, 0). The location for drawing tick labels, relative to the tip of the tick line.

tic_len 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
XXX %%axis.Y

format 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 str Attribute
Default: "axis label". The descriptive string displayed below (or in the left of) the axis. See font..

label_offset (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 <class 'pychart.line_style.T'> Attribute
Default: line_style.black. Specifies the style of axis and tick lines. See line_style..

minor_tic_interval 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 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 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 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 (x,y) Attribute
Default: (0, 0). The location for drawing tick labels, relative to the tip of the tick line.

tic_len 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.