matplotlib.patches.Annulus
- class matplotlib.patches.Annulus(xy, r, width, angle=0.0, **kwargs)
Bases:
PatchAn elliptical annulus.
- Parameters
Bases: Patch
An elliptical annulus.
xy coordinates of annulus centre.
The radius, or semi-axes:
If float: radius of the outer circle.
If two floats: semi-major and -minor axes of outer ellipse.
Width (thickness) of the annular ring. The width is measured inward
from the outer ellipse so that for the inner ellipse the semi-axes
are given by r - width. width must be less than or equal to
the semi-minor axis.
Rotation angle in degrees (anti-clockwise from the positive x-axis). Ignored for circular annuli (i.e., if r is a scalar).
Keyword arguments control the Patch properties:
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 | |
Return the angle of the annulus.
Return the center of the annulus.
Return the angle of the annulus.
Return the center of the annulus.
Return the path of this patch.
Return the semi-major and semi-minor radii of the annulus.
Return the width (thickness) of the annulus ring.
Return the semi-major and semi-minor radii of the annulus.
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 tilt angle of the annulus.
Set the center of the annulus.
Set the semi-major (a) and semi-minor radii (b) of the annulus.
The radius, or semi-axes:
If float: radius of the outer circle.
If two floats: semi-major and -minor axes of outer ellipse.
Set the semi-major axis a of the annulus.
Set the semi-minor axis b of the annulus.
Set the width (thickness) of the annulus ring.
The width is measured inwards from the outer ellipse.
Return the width (thickness) of the annulus ring.
matplotlib.patches.Annulusunknown |
bool |
| bool or None |
|
|
bool |
Patch or (Path, Transform) or None |
color or None |
color or None |
color or None |
bool |
str |
{'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'} |
unknown |
color or 'edge' or None |
bool |
|
object |
{'-', '--', '-.', ':', '', ...} or (offset, on-off-seq) |
float or None |
bool |
list of |
None or bool or float or callable |
bool |
(scale: float, length: float, randomness: float) |
bool or None |
str |
bool |
float |
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
float
bool
antialiasedoraabool or None
CapStyleor {'butt', 'projecting', 'round'}(float, float)
BboxBaseor Nonebool
Patch or (Path, Transform) or None
color or None
color or None
color or None
bool
str
{'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'}
unknown
color or 'edge' or None
bool
JoinStyleor {'miter', 'round', 'bevel'}object
{'-', '--', '-.', ':', '', ...} or (offset, on-off-seq)
float or None
bool
list of
AbstractPathEffectNone or bool or float or callable
float or (float, float)
bool
float
float
(scale: float, length: float, randomness: float)
bool or None
str
bool
float
float