matplotlib.patches.Ellipse
- class matplotlib.patches.Ellipse(xy, width, height, *, angle=0, **kwargs)
Bases:
PatchA scale-free ellipse.
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
antialiasedoraabool or None
CapStyleor {'butt', 'projecting', 'round'}
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
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
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
Return the width of the ellipse.
Return the height of the ellipse.
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 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.EllipsePlot a confidence ellipse of a two-dimensional dataset
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
float
bool
JoinStyleor {'miter', 'round', 'bevel'}object
{'-', '--', '-.', ':', '', ...} or (offset, on-off-seq)
float or None
bool
list of
AbstractPathEffectNone or bool or float or callable
bool
(scale: float, length: float, randomness: float)
bool or None
str
bool
float
float