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.
If true, tick lines and labels are drawn above the axis line.
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 Section 17
The descriptive string displayed below (or to the left of) the axis. See Section 17.
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 to the left of) of axis at the middle.
Specifies the style of axis and tick lines.
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.
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.
The location of the axis. 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.
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.
The location for drawing tick labels, relative to the tip of the tick line.
The length of tick lines. The value can be negative, in which case the tick lines are drawn right of (or above) the axis.
If true, tick lines and labels are drawn right of the axis line.
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 Section 17
The descriptive string displayed below (or to the left of) the axis. See Section 17.
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 to the left of) of axis at the middle.
Specifies the style of axis and tick lines.
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.
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.
The location of the axis. 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.
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.
The location for drawing tick labels, relative to the tip of the tick line.
The length of tick lines. The value can be negative, in which case the tick lines are drawn right of (or above) the axis.