mpl_toolkits.mplot3d.art3d.Path3DCollection#
- class mpl_toolkits.mplot3d.art3d.Path3DCollection(*args, zs=0, zdir='z', depthshade=True, **kwargs)[source]#
- Bases: - PathCollection- A collection of 3D paths. - Create a collection of flat 3D paths 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 paths in the collection. - Constructor arguments are the same as for - PathCollection. In addition, keywords zs=0 and zdir='z' are available.- Also, 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. - draw(renderer)[source]#
- Draw the Artist (and its children) using the given renderer. - This has no effect if the artist is not visible ( - Artist.get_visiblereturns False).- Parameters:
- rendererRendererBasesubclass.
 
- renderer
 - Notes - This method is overridden in the Artist subclasses. 
 - set(*, agg_filter=<UNSET>, alpha=<UNSET>, animated=<UNSET>, antialiased=<UNSET>, array=<UNSET>, capstyle=<UNSET>, clim=<UNSET>, clip_box=<UNSET>, clip_on=<UNSET>, clip_path=<UNSET>, cmap=<UNSET>, color=<UNSET>, depthshade=<UNSET>, edgecolor=<UNSET>, facecolor=<UNSET>, gid=<UNSET>, hatch=<UNSET>, in_layout=<UNSET>, joinstyle=<UNSET>, label=<UNSET>, linestyle=<UNSET>, linewidth=<UNSET>, mouseover=<UNSET>, norm=<UNSET>, offset_transform=<UNSET>, offsets=<UNSET>, path_effects=<UNSET>, paths=<UNSET>, picker=<UNSET>, pickradius=<UNSET>, rasterized=<UNSET>, sizes=<UNSET>, sketch_params=<UNSET>, snap=<UNSET>, sort_zpos=<UNSET>, transform=<UNSET>, url=<UNSET>, urls=<UNSET>, visible=<UNSET>, zorder=<UNSET>)[source]#
- Set multiple properties at once. - 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 - array-like or scalar or None - bool - antialiasedor aa or antialiaseds- bool or list of bools - array-like or None - CapStyleor {'butt', 'projecting', 'round'}- (vmin: float, vmax: float) - bool - Patch or (Path, Transform) or None - Colormapor str or None- color or list of rgba tuples - bool - edgecoloror ec or edgecolors- color or list of colors or 'face' - facecoloror facecolors or fc- color or list of colors - str - {'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'} - bool - JoinStyleor {'miter', 'round', 'bevel'}- object - linestyleor dashes or linestyles or ls- str or tuple or list thereof - linewidthor linewidths or lw- unknown - bool - Normalizeor str or None- offset_transformor transOffset- unknown - (N, 2) or (2,) array-like - unknown - None or bool or float or callable - unknown - bool - sizes- unknown - (scale: float, length: float, randomness: float) - bool or None - unknown - str - list of str or None - bool - float 
 - set_depthshade(depthshade)[source]#
- Set whether depth shading is performed on collection members. - Parameters:
- depthshadebool
- Whether to shade the patches in order to give the appearance of depth. 
 
 
 - set_linewidth(lw)[source]#
- Set the linewidth(s) for the collection. lw can be a scalar or a sequence; if it is a sequence the patches will cycle through the sequence - Parameters:
- lwfloat or list of floats