mpl_toolkits.mplot3d.art3d.Line3DCollection#
- class mpl_toolkits.mplot3d.art3d.Line3DCollection(lines, axlim_clip=False, **kwargs)[source]#
Bases:
LineCollectionA collection of 3D lines.
- Parameters:
- segmentslist of (N, 2) array-like
A sequence
[line0, line1, ...]where each line is a (N, 2)-shape array-like containing points:line0 = [(x0, y0), (x1, y1), ...]
Each line can contain a different number of points.
- linewidthsfloat or list of float, default:
rcParams["lines.linewidth"](default:1.5) The width of each line in points.
- colorscolor or list of color, default:
rcParams["lines.color"](default:'C0') A sequence of RGBA tuples (e.g., arbitrary color strings, etc, not allowed).
- antialiasedsbool or list of bool, default:
rcParams["lines.antialiased"](default:True) Whether to use antialiasing for each line.
- zorderfloat, default: 2
zorder of the lines once drawn.
- facecolorscolor or list of color, default: 'none'
When setting facecolors, each line is interpreted as a boundary for an area, implicitly closing the path from the last point to the first point. The enclosed area is filled with facecolor. In order to manually specify what should count as the "interior" of each line, please use
PathCollectioninstead, where the "interior" can be specified by appropriate usage ofCLOSEPOLY.- **kwargs
Forwarded to
Collection.
- 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>, colors=<UNSET>, edgecolor=<UNSET>, facecolor=<UNSET>, gapcolor=<UNSET>, gid=<UNSET>, hatch=<UNSET>, hatch_linewidth=<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>, segments=<UNSET>, sketch_params=<UNSET>, snap=<UNSET>, sort_zpos=<UNSET>, transform=<UNSET>, url=<UNSET>, urls=<UNSET>, verts=<UNSET>, visible=<UNSET>, zorder=<UNSET>)[source]#
Set multiple properties at once.
Supported properties are
Property
Description
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
antialiasedoraaorantialiasedsbool or list of bools
array-like or None
CapStyleor {'butt', 'projecting', 'round'}(vmin: float, vmax: float)
BboxBaseor Nonebool
Patch or (Path, Transform) or None
Colormapor str or Noneedgecolororecoredgecolorsfacecolororfacecolorsorfcstr
{'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'}
unknown
bool
JoinStyleor {'miter', 'round', 'bevel'}object
linestyleordashesorlinestylesorlsstr or tuple or list thereof
linewidthorlinewidthsorlwfloat or list of floats
bool
Normalizeor str or None(N, 2) or (2,) array-like
list of
AbstractPathEffectunknown
None or bool or float or callable
float
bool
unknown
(scale: float, length: float, randomness: float)
bool or None
unknown
str
list of str or None
unknown
bool
float