Загрузка
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 Transform instance used by this artist.
Return the xy1 value of the line.
Return the xy2 value of the line.
Set multiple properties at once.
a.set(a=A, b=B, c=C)
is equivalent to
a.set_a(A)
a.set_b(B)
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.
In addition to the full property names, aliases are also supported, e.g.
set(lw=2) is equivalent to set(linewidth=2), but it is an error
to pass both simultaneously.
The order of the individual setter calls matches the order of parameters
in set(). However, most properties do not depend on each other so
that order is rarely relevant.
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
float or None
bool
antialiasedoraabool
BboxBaseor Nonebool
Patch or (Path, Transform) or None
CapStyleor {'butt', 'projecting', 'round'}
JoinStyleor {'miter', 'round', 'bevel'}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
{'-', '--', '-.', ':', '', ...} or (offset, on-off-seq)
float
marker style string,
PathorMarkerStylefloat
markersizeormsfloat
None or int or (int, int) or slice or list[int] or float or (float, float) or list[bool]
bool
list of
AbstractPathEffectfloat or callable[[Artist, Event], tuple[bool, dict]]
float
bool
(scale: float, length: float, randomness: float)
float
bool or None
CapStyleor {'butt', 'projecting', 'round'}
JoinStyleor {'miter', 'round', 'bevel'}str
bool
1D array
unknown
unknown
1D array
float