Bases: matplotlib.patches.Patch
an axis spine – the line noting the data area boundaries
Spines are the lines connecting the axis tick marks and noting the boundaries of the data area. They can be placed at arbitrary positions. See function:~matplotlib.spines.Spine.set_position for more information.
The default position is ('outward',0).
Spines are subclasses of class:~matplotlib.patches.Patch, and inherit much of their behavior.
Spines draw a line or a circle, depending if function:~matplotlib.spines.Spine.set_patch_line or function:~matplotlib.spines.Spine.set_patch_circle has been called. Line-like is the default.
Valid kwargs are:
Property Description alpha float (0.0 transparent through 1.0 opaque) animated [True | False] antialiased or aa [True | False] or None for default axes an Axes instance clip_box a matplotlib.transforms.Bbox instance clip_on [True | False] clip_path [ (Path, Transform) | Patch | None ] color matplotlib color spec contains a callable function edgecolor or ec mpl color spec, or None for default, or ‘none’ for no color facecolor or fc mpl color spec, or None for default, or ‘none’ for no color figure a matplotlib.figure.Figure instance fill [True | False] gid an id string hatch [ ‘/’ | ‘\’ | ‘|’ | ‘-‘ | ‘+’ | ‘x’ | ‘o’ | ‘O’ | ‘.’ | ‘*’ ] label any string linestyle or ls [‘solid’ | ‘dashed’ | ‘dashdot’ | ‘dotted’] linewidth or lw float or None for default lod [True | False] picker [None|float|boolean|callable] rasterized [True | False | None] snap unknown transform Transform instance url a url string visible [True | False] zorder any number
(staticmethod) Returns a circular Spine.
Clear the current spine
get the spine position
get the spine transform
register an axis
An axis should be registered with its corresponding spine from the Axes instance. This allows the spine to clear any axis properties when needed.
Set the edgecolor.
ACCEPTS: matplotlib color arg or sequence of rgba tuples
See also
set the spine to be circular
set the spine to be linear
set the position of the spine
Spine position is specified by a 2 tuple of (position type, amount). The position types are:
Additionally, shorthand notations define a special positions: