Parameters ---------- xy : (float, float) The center position. numVertices : int The number of vertices. radius : float The distance from the center to each of the vertices. orientation : float The po
(self, xy, numVertices, *,
radius=5, orientation=0, **kwargs)
| 1054 | |
| 1055 | @_docstring.interpd |
| 1056 | def __init__(self, xy, numVertices, *, |
| 1057 | radius=5, orientation=0, **kwargs): |
| 1058 | """ |
| 1059 | Parameters |
| 1060 | ---------- |
| 1061 | xy : (float, float) |
| 1062 | The center position. |
| 1063 | |
| 1064 | numVertices : int |
| 1065 | The number of vertices. |
| 1066 | |
| 1067 | radius : float |
| 1068 | The distance from the center to each of the vertices. |
| 1069 | |
| 1070 | orientation : float |
| 1071 | The polygon rotation angle (in radians). |
| 1072 | |
| 1073 | **kwargs |
| 1074 | `Patch` properties: |
| 1075 | |
| 1076 | %(Patch:kwdoc)s |
| 1077 | """ |
| 1078 | self.xy = xy |
| 1079 | self.numvertices = numVertices |
| 1080 | self.orientation = orientation |
| 1081 | self.radius = radius |
| 1082 | self._path = Path.unit_regular_polygon(numVertices) |
| 1083 | self._patch_transform = transforms.Affine2D() |
| 1084 | super().__init__(**kwargs) |
| 1085 | |
| 1086 | def get_path(self): |
| 1087 | return self._path |
nothing calls this directly
no test coverage detected