Showing content from http://matplotlib.org/api/_as_gen/matplotlib.patches.RegularPolygon.html below:
matplotlib.patches.RegularPolygon — Matplotlib 3.10.5 documentation
matplotlib.patches.RegularPolygon#
-
class matplotlib.patches.RegularPolygon(xy, numVertices, *, radius=5, orientation=0, **kwargs)[source]#
-
Bases: Patch
A regular polygon patch.
-
Parameters:
-
-
xy(float, float)
-
The center position.
-
numVerticesint
-
The number of vertices.
-
radiusfloat
-
The distance from the center to each of the vertices.
-
orientationfloat
-
The polygon rotation angle (in radians).
-
**kwargs
-
Patch
properties:
-
get_patch_transform()[source]#
-
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.
-
get_path()[source]#
-
Return the path of this patch.
-
set(*, agg_filter=<UNSET>, alpha=<UNSET>, animated=<UNSET>, antialiased=<UNSET>, capstyle=<UNSET>, clip_box=<UNSET>, clip_on=<UNSET>, clip_path=<UNSET>, color=<UNSET>, edgecolor=<UNSET>, facecolor=<UNSET>, fill=<UNSET>, gid=<UNSET>, hatch=<UNSET>, hatch_linewidth=<UNSET>, in_layout=<UNSET>, joinstyle=<UNSET>, label=<UNSET>, linestyle=<UNSET>, linewidth=<UNSET>, mouseover=<UNSET>, path_effects=<UNSET>, picker=<UNSET>, rasterized=<UNSET>, sketch_params=<UNSET>, snap=<UNSET>, transform=<UNSET>, url=<UNSET>, visible=<UNSET>, zorder=<UNSET>)[source]#
-
Set multiple properties at once.
Supported properties are
Examples using matplotlib.patches.RegularPolygon
#
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4