Parameters ---------- xy : (N, 2) array closed : bool, default: True Whether the polygon is closed (i.e., has identical start and end points). **kwargs %(Patch:kwdoc)s
(self, xy, *, closed=True, **kwargs)
| 1242 | |
| 1243 | @_docstring.interpd |
| 1244 | def __init__(self, xy, *, closed=True, **kwargs): |
| 1245 | """ |
| 1246 | Parameters |
| 1247 | ---------- |
| 1248 | xy : (N, 2) array |
| 1249 | |
| 1250 | closed : bool, default: True |
| 1251 | Whether the polygon is closed (i.e., has identical start and end |
| 1252 | points). |
| 1253 | |
| 1254 | **kwargs |
| 1255 | %(Patch:kwdoc)s |
| 1256 | """ |
| 1257 | super().__init__(**kwargs) |
| 1258 | self._closed = closed |
| 1259 | self.set_xy(xy) |
| 1260 | |
| 1261 | def get_path(self): |
| 1262 | """Get the `.Path` of the polygon.""" |