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

Method set_verts

lib/mpl_toolkits/mplot3d/art3d.py:1369–1386  ·  view source on GitHub ↗

Set 3D vertices. Parameters ---------- verts : list of (N, 3) 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 (N, 3).

(self, verts, closed=True)

Source from the content-addressed store, hash-verified

1367 self._invalid_vertices = np.arange(max_verts) >= num_verts[:, None]
1368
1369 def set_verts(self, verts, closed=True):
1370 """
1371 Set 3D vertices.
1372
1373 Parameters
1374 ----------
1375 verts : list of (N, 3) array-like
1376 The sequence of polygons [*verts0*, *verts1*, ...] where each
1377 element *verts_i* defines the vertices of polygon *i* as a 2D
1378 array-like of shape (N, 3).
1379 closed : bool, default: True
1380 Whether the polygon should be closed by adding a CLOSEPOLY
1381 connection at the end.
1382 """
1383 self._get_vector(verts)
1384 # 2D verts will be updated at draw time
1385 super().set_verts([], False)
1386 self._closed = closed
1387
1388 def set_verts_and_codes(self, verts, codes):
1389 """Set 3D vertices with path codes."""

Callers 2

set_verts_and_codesMethod · 0.95
do_3d_projectionMethod · 0.45

Calls 1

_get_vectorMethod · 0.95

Tested by

no test coverage detected