Bases: Line2D
A helper class that implements axline, by recomputing the artist transform at draw time.
The first set of (x, y) coordinates for the line to pass through.
The second set of (x, y) coordinates for the line to pass through. Both xy2 and slope must be passed, but one of them must be None.
The slope of the line. Both xy2 and slope must be passed, but one of them must be None.
Draw the Artist (and its children) using the given renderer.
This has no effect if the artist is not visible (Artist.get_visible returns False).
RendererBase subclass.
This method is overridden in the Artist subclasses.
Return the slope value of the line.
Return the xy1 value of the line.
Return the xy2 value of the line.
Set multiple properties at once.
Supported properties are
Property | Description |
|---|---|
a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array and two offsets from the bottom left corner of the image | |
scalar or None | |
bool | |
| bool |
| |
bool | |
Patch or (Path, Transform) or None | |
| |
| |
| |
sequence of floats (on/off ink in points) or (None, None) | |
(2, N) array or two 1D arrays | |
| {'default', 'steps', 'steps-pre', 'steps-mid', 'steps-post'}, default: 'default' |
{'full', 'left', 'right', 'bottom', 'top', 'none'} | |
color or None | |
str | |
bool | |
object | |
| {'-', '--', '-.', ':', '', (offset, on-off-seq), ...} |
| float |
marker style string, | |
| |
| float |
| |
| |
| float |
None or int or (int, int) or slice or list[int] or float or (float, float) or list[bool] | |
bool | |
list of | |
float or callable[[Artist, Event], tuple[bool, dict]] | |
float | |
bool | |
(scale: float, length: float, randomness: float) | |
float | |
bool or None | |
| |
| |
str | |
bool | |
1D array | |
unknown | |
unknown | |
1D array | |
float |
Set the slope value of the line.
The slope of the line.
Set the xy1 value of the line.
Points for the line to pass through.
Set the xy2 value of the line.
Points for the line to pass through.
© 2012–2023 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/matplotlib.lines.AxLine.html