mpl_toolkits.mplot3d.art3d.Line3DCollection#
- class mpl_toolkits.mplot3d.art3d.Line3DCollection(segments, *, zorder=2, **kwargs)[source]#
Bases:
LineCollection
A collection of 3D lines.
- Parameters:
- segmentslist of array-like
A sequence of (line0, line1, line2), where:
linen = (x0, y0), (x1, y1), ... (xm, ym)
or the equivalent numpy array with two columns. Each line can have a different number of segments.
- 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
PathCollection
instead, 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>, 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>, 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 scalar or None
bool
antialiased
or aa or antialiasedsbool or list of bools
array-like or None
CapStyle
or {'butt', 'projecting', 'round'}(vmin: float, vmax: float)
bool
Patch or (Path, Transform) or None
Colormap
or str or Nonecolor or list of colors
color or list of colors
edgecolor
or ec or edgecolorscolor or list of colors or 'face'
facecolor
or facecolors or fccolor or list of colors
str
{'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'}
bool
JoinStyle
or {'miter', 'round', 'bevel'}object
linestyle
or dashes or linestyles or lsstr or tuple or list thereof
linewidth
or linewidths or lwfloat or list of floats
bool
Normalize
or str or Noneoffset_transform
or transOffsetunknown
(N, 2) or (2,) array-like
unknown
None or bool or float or callable
unknown
bool
unknown
(scale: float, length: float, randomness: float)
bool or None
unknown
str
list of str or None
unknown
bool
float