Classes for the ticks and x and y axis
Bases: matplotlib.artist.Artist
Public attributes
Init the axis with the parent Axes instance
Set the axis grid on or off; b is a boolean use which = ‘major’ | ‘minor’ to set the grid for major or minor ticks
if b is None and len(kwargs)==0, toggle the grid state. If kwargs are supplied, it is assumed you want the grid on and b will be set to True
kwargs are used to set the line properties of the grids, eg,
xax.grid(color=’r’, linestyle=’-‘, linewidth=2)
Set the coordinates of the label. By default, the x coordinate of the y label is determined by the tick label bounding boxes, but this can lead to poor alignment of multiple ylabels if there are multiple axes. Ditto for the y coodinate of the x label.
You can also specify the coordinate system of the label with the transform. If None, the default coordinate system will be the axes coordinate system (0,0) is (left,bottom), (0.5, 0.5) is middle, etc
Set the depth of the axis used by the picker
ACCEPTS: a distance in points
Set the text values of the tick labels. Return a list of Text instances. Use kwarg minor=True to select minor ticks.
ACCEPTS: sequence of strings
Set the locations of the tick marks from sequence ticks
ACCEPTS: sequence of floats
set the units for axis
ACCEPTS: a units tag
Bases: matplotlib.artist.Artist
Abstract base class for the axis ticks, grid lines and labels
1 refers to the bottom of the plot for xticks and the left for yticks 2 refers to the top of the plot for xticks and the right for yticks
Publicly accessible attributes:
- tick1line
- a Line2D instance
- tick2line
- a Line2D instance
- gridline
- a Line2D instance
- label1
- a Text instance
- label2
- a Text instance
- gridOn
- a boolean which determines whether to draw the tickline
- tick1On
- a boolean which determines whether to draw the 1st tickline
- tick2On
- a boolean which determines whether to draw the 2nd tickline
- label1On
- a boolean which determines whether to draw tick label
- label2On
- a boolean which determines whether to draw tick label
bbox is the Bound2D bounding box in display coords of the Axes loc is the tick location in data coords size is the tick size in relative, axes coords
Test whether the mouse event occured in the Tick marks.
This function always returns false. It is more useful to test if the axis as a whole contains the mouse rather than the set of tick marks.
Set the artist’s clip path, which may be:
For efficiency, if the path happens to be an axis-aligned rectangle, this method will set the clipping box to the corresponding rectangle and set the clipping path to None.
Set the text of ticklabel
ACCEPTS: str
Set the text of ticklabel
ACCEPTS: str
Set the text of ticklabel2
ACCEPTS: str
Set the tick label pad in points
ACCEPTS: float
Bases: matplotlib.axis.Axis
Init the axis with the parent Axes instance
Set the label position (top or bottom)
ACCEPTS: [ ‘top’ | ‘bottom’ ]
Set the ticks position (top, bottom, both, default or none) both sets the ticks to appear on both positions, but does not change the tick labels. default resets the tick positions to the default: ticks on both positions, labels at bottom. none can be used if you don’t want any ticks.
ACCEPTS: [ ‘top’ | ‘bottom’ | ‘both’ | ‘default’ | ‘none’ ]
Bases: matplotlib.axis.Tick
Contains all the Artists needed to make an x tick - the tick line, the label text and the grid line
bbox is the Bound2D bounding box in display coords of the Axes loc is the tick location in data coords size is the tick size in relative, axes coords
Bases: matplotlib.axis.Axis
Init the axis with the parent Axes instance
Test whether the mouse event occurred in the y axis.
Returns True | False
Set the label position (left or right)
ACCEPTS: [ ‘left’ | ‘right’ ]
Set the ticks position (left, right, both or default) both sets the ticks to appear on both positions, but does not change the tick labels. default resets the tick positions to the default: ticks on both positions, labels on the left.
ACCEPTS: [ ‘left’ | ‘right’ | ‘both’ | ‘default’ | ‘none’ ]
Bases: matplotlib.axis.Tick
Contains all the Artists needed to make a Y tick - the tick line, the label text and the grid line
bbox is the Bound2D bounding box in display coords of the Axes loc is the tick location in data coords size is the tick size in relative, axes coords