Bases: matplotlib.patches.Patch
An elliptical annulus.
xy coordinates of annulus centre.
The radius, or semi-axes:
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 | |
unknown | |
bool | |
| bool or None |
| |
bool | |
Patch or (Path, Transform) or None | |
color | |
| color or None |
| color or None |
bool | |
str | |
{'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'} | |
bool | |
| |
object | |
| {'-', '--', '-.', ':', '', (offset, on-off-seq), ...} |
| float or None |
None or bool or float or callable | |
bool | |
(scale: float, length: float, randomness: float) | |
bool or None | |
str | |
bool | |
float |
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.
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 | |
scalar or None | |
float | |
bool | |
| bool or None |
| |
(float, float) | |
bool | |
Patch or (Path, Transform) or None | |
color | |
| color or None |
| color or None |
bool | |
str | |
{'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'} | |
bool | |
| |
object | |
| {'-', '--', '-.', ':', '', (offset, on-off-seq), ...} |
| float or None |
None 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 |
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:
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.
© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/_as_gen/matplotlib.patches.Annulus.html