Primary
matplotlib.lines.Line2D() ⚬|Documentation|1st|20251021003846-00-⌔
matplotlib.lines.Line2D — Matplotlib 3.10.8 documentation#matplotlib.lines.Line2D
class
matplotlib.lines.Line2D(xdata, ydata, ﹡, linewidth=None, linestyle=None, color=None, gapcolor=None, marker=None, markersize=None, markeredgewidth=None, markeredgecolor=None, markerfacecolor=None, markerfacecoloralt='none', fillstyle=None, antialiased=None, dash_capstyle=None, solid_capstyle=None, dash_joinstyle=None, solid_joinstyle=None, pickradius=5, drawstyle=None, markevery=None, ﹡﹡kwargs)Bases:
ArtistA line - the line can have both a solid linestyle connecting all the vertices, and a marker at each vertex. Additionally, the drawing of the solid line is influenced by the drawstyle, e.g., one can create “stepped” lines in various styles.
Create a
Line2Dinstance with x and y data in sequences of xdata, ydata.Additional keyword arguments are
Line2Dproperties:See
set_linestyle()for a description of the line styles,set_marker()for a description of the markers, andset_drawstyle()for a description of the draw styles.Printed 2026-06-28.
Link to original
Secondary
• • •