MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / __init__

Method __init__

lib/matplotlib/patches.py:1244–1259  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 2

set_xyMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected