Bases: Patch
A scale-free ellipse.
xy coordinates of ellipse centre.
Total length (diameter) of horizontal axis.
Total length (diameter) of vertical axis.
Rotation in degrees anti-clockwise.
Valid keyword arguments 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 | |
unknown | |
bool | |
| bool or None |
| |
| |
bool | |
Patch or (Path, Transform) or None | |
| color or None |
| color or None |
bool | |
str | |
{'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'} | |
bool | |
| |
object | |
| {'-', '--', '-.', ':', '', (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 |
Return the angle of the ellipse.
Return the center of the ellipse.
Return the angle of the ellipse.
Return the center of the ellipse.
Return the co-vertices coordinates of the ellipse.
The definition can be found here
Added in version 3.8.
Return the corners of the ellipse bounding box.
The bounding box orientation is moving anti-clockwise from the lower left corner defined before rotation.
Return the height of the ellipse.
Return the Transform instance mapping patch coordinates to data coordinates.
For example, one may define a patch of a circle which represents a radius of 5 by providing coordinates for a unit circle, and a transform which scales the coordinates (the patch coordinate) by 5.
Return the path of the ellipse.
Return the vertices coordinates of the ellipse.
The definition can be found here
Added in version 3.8.
Return the width of the ellipse.
Return the height of the ellipse.
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 | |
float | |
bool | |
| bool or None |
| |
(float, float) | |
| |
bool | |
Patch or (Path, Transform) or None | |
| color or None |
| color or None |
bool | |
str | |
{'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'} | |
float | |
bool | |
| |
object | |
| {'-', '--', '-.', ':', '', (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 | |
float |
Set the angle of the ellipse.
Set the center of the ellipse.
Set the height of the ellipse.
Set the width of the ellipse.
Return the width of the ellipse.
matplotlib.patches.Ellipse
Plot a confidence ellipse of a two-dimensional dataset
© 2012–2023 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/matplotlib.patches.Ellipse.html