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

Method __init__

lib/matplotlib/collections.py:1302–1325  ·  view source on GitHub ↗

Parameters ---------- verts : list of array-like The sequence of polygons [*verts0*, *verts1*, ...] where each element *verts_i* defines the vertices of polygon *i* as a 2D array-like of shape (M, 2). sizes : array-like, default: N

(self, verts, sizes=None, *, closed=True, **kwargs)

Source from the content-addressed store, hash-verified

1300class PolyCollection(_CollectionWithSizes):
1301
1302 def __init__(self, verts, sizes=None, *, closed=True, **kwargs):
1303 """
1304 Parameters
1305 ----------
1306 verts : list of array-like
1307 The sequence of polygons [*verts0*, *verts1*, ...] where each
1308 element *verts_i* defines the vertices of polygon *i* as a 2D
1309 array-like of shape (M, 2).
1310 sizes : array-like, default: None
1311 Squared scaling factors for the polygons. The coordinates of each
1312 polygon *verts_i* are multiplied by the square-root of the
1313 corresponding entry in *sizes* (i.e., *sizes* specify the scaling
1314 of areas). The scaling is applied before the Artist master
1315 transform.
1316 closed : bool, default: True
1317 Whether the polygon should be closed by adding a CLOSEPOLY
1318 connection at the end.
1319 **kwargs
1320 Forwarded to `.Collection`.
1321 """
1322 super().__init__(**kwargs)
1323 self.set_sizes(sizes)
1324 self.set_verts(verts, closed)
1325 self.stale = True
1326
1327 def set_verts(self, verts, closed=True):
1328 """

Callers

nothing calls this directly

Calls 3

set_vertsMethod · 0.95
__init__Method · 0.45
set_sizesMethod · 0.45

Tested by

no test coverage detected