mpl_toolkits.mplot3d.art3d.Poly3DCollection
- class mpl_toolkits.mplot3d.art3d.Poly3DCollection(verts, *args, zsort='average', shade=False, lightsource=None, axlim_clip=False, **kwargs)
Bases: PolyCollection
A collection of 3D polygons.
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).
The calculation method for the z-order.
See set_zsort for details.
Whether to shade facecolors and edgecolors. When activating shade, facecolors and/or edgecolors must be provided.
LightSource, optionalThe lightsource to use when shade is True.
Whether to hide polygons with a vertex outside the view limits.
All other parameters are forwarded to PolyCollection.
Note that this class does a bit of magic with the _facecolors and _edgecolors properties.
Perform the 3D projection for this object.
[Deprecated]
Set the alpha value used for blending - not supported on all backends.
All values must be within the 0-1 range, inclusive. Masked values and nans are not supported.
Set the edgecolor(s) of the collection.
Set the facecolor(s) of the collection. c can be a color (all patches have same color), or a sequence of colors; if it is a sequence the patches will cycle through the sequence.
If c is 'none', the patch will not be filled.
Set the position to use for z-sorting.
Set 3D vertices.
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).
Whether the polygon should be closed by adding a CLOSEPOLY connection at the end.
Set 3D vertices with path codes.
Set the calculation method for the z-order.
The function applied on the z-coordinates of the vertices in the viewer's coordinate system, to determine the z-order.
mpl_toolkits.mplot3d.art3d.Poly3DCollectionSet multiple properties at once.
a.set(a=A, b=B, c=C)
is equivalent to
a.set_a(A)
a.set_b(B)
a.set_c(C)
In addition to the full property names, aliases are also supported, e.g.
set(lw=2) is equivalent to set(linewidth=2), but it is an error
to pass both simultaneously.
The order of the individual setter calls matches the order of parameters
in set(). However, most properties do not depend on each other so
that order is rarely relevant.
Supported properties are
Property
Description
unknown
a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array and two offsets from the bottom left corner of the image |
unknown |
bool |
| bool or list of bools |
array-like or None |
|
(vmin: float, vmax: float) |
|
bool |
Patch or (Path, Transform) or None |
|
color or list of RGBA tuples |
| unknown |
| unknown |
str |
{'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'} |
unknown |
bool |
|
object |
| {'-', '--', '-.', ':', '', ...} or (offset, on-off-seq) or list thereof |
| float or list of floats |
bool |
|
(N, 2) or (2,) array-like |
list of |
list of array-like |
None or bool or float or callable |
float |
bool |
|
(scale: float, length: float, randomness: float) |
bool or None |
unknown |
str |
list of str or None |
list of (N, 3) array-like |
unknown |
bool |
float |
{'average', 'min', 'max'} |