mpl_toolkits.mplot3d.art3d.Line3DCollection¶
-
class
mpl_toolkits.mplot3d.art3d.
Line3DCollection
(segments, linewidths=None, colors=None, antialiaseds=None, linestyles='solid', offsets=None, transOffset=None, norm=None, cmap=None, pickradius=5, zorder=2, facecolors='none', **kwargs)[源代码]¶ 基类:
matplotlib.collections.LineCollection
三维线条的集合。
参数: - segments: list of array-like
一系列 线0 , 线1 , 线2 ):
linen = (x0, y0), (x1, y1), ... (xm, ym)
或具有两列的等效numpy数组。每条线可以有不同数量的线段。
- 线宽度 : float or list of float, default:
rcParams["lines.linewidth"]
(default:1.5
)浮动或浮动列表,默认值: 以点为单位的每行的宽度。
- **** : color or list of color, default:
rcParams["lines.color"]
(default:'C0'
)颜色或颜色列表,默认值: rgba元组的序列(例如,不允许使用任意颜色字符串等)。
- 抗混叠剂 : bool or list of bool, default:
rcParams["lines.antialiased"]
(default:True
)bool或bool列表,默认值: 是否对每行使用抗锯齿。
- zorderint,默认值:2
一次画线的顺序。
- facecolors颜色或颜色列表,默认值:“无”
LineCollection的FaceColor。设置为“无”以外的值将导致每条线被“填充”,就好像有一条隐式线段将该线的最后和第一个点重新连接在一起一样。为了手动指定应计为每行“内部”的内容,请使用
PathCollection
相反,“内部”可以通过适当使用CLOSEPOLY
.- **kwargs
Forwared到
Collection
.
-
__module__
= 'mpl_toolkits.mplot3d.art3d'¶
-
draw
(renderer, project=False)[源代码]¶ 使用给定的渲染器绘制艺术家(及其子对象)。
如果艺术家不可见,则此操作无效 (
Artist.get_visible
返回False)。参数: - 渲染器 :
RendererBase
子类。RenderBase子类。
笔记
此方法在Artist子类中被重写。
- 渲染器 :