mpl_toolkits.mplot3d.art3d.Patch3DCollection
- class mpl_toolkits.mplot3d.art3d.Patch3DCollection(*args, zs=0, zdir='z', depthshade=None, depthshade_minalpha=None, axlim_clip=False,
Bases: PatchCollection
A collection of 3D patches.
Create a collection of flat 3D patches with its normal vector pointed in zdir direction, and located at zs on the zdir axis. 'zs' can be a scalar or an array-like of the same length as the number of patches in the collection.
Constructor arguments are the same as for
PatchCollection. In addition,
keywords zs=0 and zdir='z' are available.
The keyword argument depthshade is available to indicate whether or not to shade the patches in order to give the appearance of depth (default is True). This is typically desired in scatter plots.
depthshade_minalpha sets the minimum alpha value applied by depth-shading.
Set the z positions and direction of the patches.
Set whether depth shading is performed on collection members.
Whether to shade the patches in order to give the appearance of depth.
rcParams["axes3d.depthshade_minalpha"] (default: )Set the position to use for z-sorting.
Set 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
float or array of floats
get_dir_vectorWhether to hide patches with a vertex outside the axes view limits.
Sets the minimum alpha value used by depth-shading.
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 |
array-like or float or None |
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 |
bool |
|
|
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 |
unknown |
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 |
bool |
float |