You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
<divid="unreleased-message"> You are reading an old version of the documentation (v2.0.0). For the latest version see <ahref="https://matplotlib.org/stable/api/lines_api.html">https://matplotlib.org/stable/api/lines_api.html</a></div>
<td>float distance in points or callable pick function <codeclass="docutils literal"><spanclass="pre">fn(artist,</span><spanclass="pre">event)</span></code></td>
<p>See <aclass="reference internal" href="#matplotlib.lines.Line2D.set_linestyle" title="matplotlib.lines.Line2D.set_linestyle"><codeclass="xref py py-meth docutils literal"><spanclass="pre">set_linestyle()</span></code></a> for a decription of the line styles,
<aclass="reference internal" href="#matplotlib.lines.Line2D.set_marker" title="matplotlib.lines.Line2D.set_marker"><codeclass="xref py py-meth docutils literal"><spanclass="pre">set_marker()</span></code></a> for a description of the markers, and
<aclass="reference internal" href="#matplotlib.lines.Line2D.set_drawstyle" title="matplotlib.lines.Line2D.set_drawstyle"><codeclass="xref py py-meth docutils literal"><spanclass="pre">set_drawstyle()</span></code></a> for a description of the draw styles.</p>
<dlclass="attribute">
<dtid="matplotlib.lines.Line2D.axes">
<codeclass="descname">axes</code><aclass="headerlink" href="#matplotlib.lines.Line2D.axes" title="Permalink to this definition">¶</a></dt>
<dd><p>The <aclass="reference internal" href="axes_api.html#matplotlib.axes.Axes" title="matplotlib.axes.Axes"><codeclass="xref py py-class docutils literal"><spanclass="pre">Axes</span></code></a> instance the artist
resides in, or <em>None</em>.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.contains">
<codeclass="descname">contains</code><spanclass="sig-paren">(</span><em>mouseevent</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.contains" title="Permalink to this definition">¶</a></dt>
<dd><p>Test whether the mouse event occurred on the line. The pick
radius determines the precision of the location test (usually
within five points of the value). Use
<aclass="reference internal" href="#matplotlib.lines.Line2D.get_pickradius" title="matplotlib.lines.Line2D.get_pickradius"><codeclass="xref py py-meth docutils literal"><spanclass="pre">get_pickradius()</span></code></a> or
<aclass="reference internal" href="#matplotlib.lines.Line2D.set_pickradius" title="matplotlib.lines.Line2D.set_pickradius"><codeclass="xref py py-meth docutils literal"><spanclass="pre">set_pickradius()</span></code></a> to view or
modify it.</p>
<p>Returns <em>True</em> if any values are within the radius along with
<codeclass="docutils literal"><spanclass="pre">{'ind':</span><spanclass="pre">pointlist}</span></code>, where <em>pointlist</em> is the set of points
within the radius.</p>
<p>TODO: sort returned indices by distance</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.draw">
<codeclass="descname">draw</code><spanclass="sig-paren">(</span><em>artist</em>, <em>renderer</em>, <em>*args</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.draw" title="Permalink to this definition">¶</a></dt>
<dd><p>draw the Line with <codeclass="xref py py-obj docutils literal"><spanclass="pre">renderer</span></code> unless visibility is False</p>
</dd></dl>
<dlclass="attribute">
<dtid="matplotlib.lines.Line2D.drawStyleKeys">
<codeclass="descname">drawStyleKeys</code><emclass="property"> = ['default', 'steps-mid', 'steps-pre', 'steps-post', 'steps']</em><aclass="headerlink" href="#matplotlib.lines.Line2D.drawStyleKeys" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="attribute">
<dtid="matplotlib.lines.Line2D.drawStyles">
<codeclass="descname">drawStyles</code><emclass="property"> = {'default': '_draw_lines', 'steps-mid': '_draw_steps_mid', 'steps-pre': '_draw_steps_pre', 'steps-post': '_draw_steps_post', 'steps': '_draw_steps_pre'}</em><aclass="headerlink" href="#matplotlib.lines.Line2D.drawStyles" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="attribute">
<dtid="matplotlib.lines.Line2D.fillStyles">
<codeclass="descname">fillStyles</code><emclass="property"> = ('full', 'left', 'right', 'bottom', 'top', 'none')</em><aclass="headerlink" href="#matplotlib.lines.Line2D.fillStyles" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_aa</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_aa" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for get_antialiased</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_antialiased">
<codeclass="descname">get_antialiased</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_antialiased" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_c">
<codeclass="descname">get_c</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_c" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for get_color</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_color">
<codeclass="descname">get_color</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_color" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_dash_capstyle</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_dash_capstyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the cap style for dashed linestyles</p>
<codeclass="descname">get_dash_joinstyle</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_dash_joinstyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the join style for dashed linestyles</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_data">
<codeclass="descname">get_data</code><spanclass="sig-paren">(</span><em>orig=True</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_data" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the xdata, ydata.</p>
<p>If <em>orig</em> is <em>True</em>, return the original data.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_drawstyle">
<codeclass="descname">get_drawstyle</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_drawstyle" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_fillstyle">
<codeclass="descname">get_fillstyle</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_fillstyle" title="Permalink to this definition">¶</a></dt>
<dd><p>return the marker fillstyle</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_linestyle">
<codeclass="descname">get_linestyle</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_linestyle" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_linewidth">
<codeclass="descname">get_linewidth</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_linewidth" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_ls">
<codeclass="descname">get_ls</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_ls" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for get_linestyle</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_lw">
<codeclass="descname">get_lw</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_lw" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for get_linewidth</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_marker">
<codeclass="descname">get_marker</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_marker" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_markeredgecolor</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_markeredgecolor" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_markeredgewidth</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_markeredgewidth" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_markerfacecolor</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_markerfacecolor" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_markerfacecoloralt</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_markerfacecoloralt" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_markersize">
<codeclass="descname">get_markersize</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_markersize" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_markevery">
<codeclass="descname">get_markevery</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_markevery" title="Permalink to this definition">¶</a></dt>
<dd><p>return the markevery setting</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_mec">
<codeclass="descname">get_mec</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_mec" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for get_markeredgecolor</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_mew">
<codeclass="descname">get_mew</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_mew" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for get_markeredgewidth</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_mfc">
<codeclass="descname">get_mfc</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_mfc" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for get_markerfacecolor</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_mfcalt">
<codeclass="descname">get_mfcalt</code><spanclass="sig-paren">(</span><em>alt=False</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_mfcalt" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for get_markerfacecoloralt</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_ms">
<codeclass="descname">get_ms</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_ms" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for get_markersize</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_path">
<codeclass="descname">get_path</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_path" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_pickradius</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_pickradius" title="Permalink to this definition">¶</a></dt>
<dd><p>return the pick radius used for containment tests</p>
<codeclass="descname">get_solid_capstyle</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_solid_capstyle" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_solid_joinstyle</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_solid_joinstyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the join style for solid linestyles</p>
<codeclass="descname">get_window_extent</code><spanclass="sig-paren">(</span><em>renderer</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_window_extent" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_xdata">
<codeclass="descname">get_xdata</code><spanclass="sig-paren">(</span><em>orig=True</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_xdata" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the xdata.</p>
<p>If <em>orig</em> is <em>True</em>, return the original data, else the
processed data.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_xydata">
<codeclass="descname">get_xydata</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_xydata" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the <em>xy</em> data as a Nx2 numpy array.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.get_ydata">
<codeclass="descname">get_ydata</code><spanclass="sig-paren">(</span><em>orig=True</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.get_ydata" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the ydata.</p>
<p>If <em>orig</em> is <em>True</em>, return the original data, else the
processed data.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.is_dashed">
<codeclass="descname">is_dashed</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.is_dashed" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">recache</code><spanclass="sig-paren">(</span><em>always=False</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.recache" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.recache_always">
<codeclass="descname">recache_always</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.recache_always" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.set_aa">
<codeclass="descname">set_aa</code><spanclass="sig-paren">(</span><em>val</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_aa" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for set_antialiased</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.set_antialiased">
<codeclass="descname">set_antialiased</code><spanclass="sig-paren">(</span><em>b</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_antialiased" title="Permalink to this definition">¶</a></dt>
<dd><p>True if line should be drawin with antialiased rendering</p>
<p>ACCEPTS: [True | False]</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.set_c">
<codeclass="descname">set_c</code><spanclass="sig-paren">(</span><em>val</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_c" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for set_color</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.set_color">
<codeclass="descname">set_color</code><spanclass="sig-paren">(</span><em>color</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_color" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">set_dash_capstyle</code><spanclass="sig-paren">(</span><em>s</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_dash_capstyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the cap style for dashed linestyles</p>
<codeclass="descname">set_dash_joinstyle</code><spanclass="sig-paren">(</span><em>s</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_dash_joinstyle" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">set_dashes</code><spanclass="sig-paren">(</span><em>seq</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_dashes" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the dash sequence, sequence of dashes with on off ink in
points. If seq is empty or if seq = (None, None), the
linestyle will be set to solid.</p>
<p>ACCEPTS: sequence of on/off ink in points</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.set_data">
<codeclass="descname">set_data</code><spanclass="sig-paren">(</span><em>*args</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_data" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the x and y data</p>
<p>ACCEPTS: 2D array (rows are x, y) or two 1D arrays</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.set_drawstyle">
<codeclass="descname">set_drawstyle</code><spanclass="sig-paren">(</span><em>drawstyle</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_drawstyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the drawstyle of the plot</p>
<p>‘default’ connects the points with lines. The steps variants
produce step-plots. ‘steps’ is equivalent to ‘steps-pre’ and
<codeclass="descname">set_fillstyle</code><spanclass="sig-paren">(</span><em>fs</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_fillstyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the marker fill style; ‘full’ means fill the whole marker.
‘none’ means no filling; other options are for half-filled markers.</p>
<codeclass="descname">set_linestyle</code><spanclass="sig-paren">(</span><em>ls</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_linestyle" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the linestyle of the line (also accepts drawstyles,
<trclass="row-even"><td><codeclass="docutils literal"><spanclass="pre">'-'</span></code> or <codeclass="docutils literal"><spanclass="pre">'solid'</span></code></td>
<td>solid line</td>
</tr>
<trclass="row-odd"><td><codeclass="docutils literal"><spanclass="pre">'--'</span></code> or <codeclass="docutils literal"><spanclass="pre">'dashed'</span></code></td>
<td>dashed line</td>
</tr>
<trclass="row-even"><td><codeclass="docutils literal"><spanclass="pre">'-.'</span></code> or <codeclass="docutils literal"><spanclass="pre">'dashdot'</span></code></td>
<td>dash-dotted line</td>
</tr>
<trclass="row-odd"><td><codeclass="docutils literal"><spanclass="pre">':'</span></code> or <codeclass="docutils literal"><spanclass="pre">'dotted'</span></code></td>
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><pclass="first"><strong>ls</strong> : { <codeclass="docutils literal"><spanclass="pre">'-'</span></code>, <codeclass="docutils literal"><spanclass="pre">'--'</span></code>, <codeclass="docutils literal"><spanclass="pre">'-.'</span></code>, <codeclass="docutils literal"><spanclass="pre">':'</span></code>} and more see description</p>
<blockquoteclass="last">
<div><p>The line style.</p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.set_linewidth">
<codeclass="descname">set_linewidth</code><spanclass="sig-paren">(</span><em>w</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_linewidth" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the line width in points</p>
<p>ACCEPTS: float value in points</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.set_ls">
<codeclass="descname">set_ls</code><spanclass="sig-paren">(</span><em>val</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_ls" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for set_linestyle</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.set_lw">
<codeclass="descname">set_lw</code><spanclass="sig-paren">(</span><em>val</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_lw" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for set_linewidth</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.set_marker">
<codeclass="descname">set_marker</code><spanclass="sig-paren">(</span><em>marker</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_marker" title="Permalink to this definition">¶</a></dt>
<div><p>See <aclass="reference internal" href="markers_api.html#module-matplotlib.markers" title="matplotlib.markers"><codeclass="xref py py-obj docutils literal"><spanclass="pre">markers</span></code></a> for full description of possible
<codeclass="descname">set_markeredgecolor</code><spanclass="sig-paren">(</span><em>ec</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_markeredgecolor" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">set_markeredgewidth</code><spanclass="sig-paren">(</span><em>ew</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_markeredgewidth" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">set_markerfacecolor</code><spanclass="sig-paren">(</span><em>fc</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_markerfacecolor" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">set_markerfacecoloralt</code><spanclass="sig-paren">(</span><em>fc</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_markerfacecoloralt" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the alternate marker face color.</p>
<p>ACCEPTS: any matplotlib color</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.set_markersize">
<codeclass="descname">set_markersize</code><spanclass="sig-paren">(</span><em>sz</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_markersize" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the marker size in points</p>
<p>ACCEPTS: float</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.set_markevery">
<codeclass="descname">set_markevery</code><spanclass="sig-paren">(</span><em>every</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_markevery" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the markevery property to subsample the plot when using markers.</p>
<p>e.g., if <codeclass="xref py py-obj docutils literal"><spanclass="pre">every=5</span></code>, every 5-th marker will be plotted.</p>
<p>ACCEPTS: [None | int | length-2 tuple of int | slice |
list/array of int | float | length-2 tuple of float]</p>
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><pclass="first"><strong>every: None | int | length-2 tuple of int | slice | list/array of int |</strong></p>
<p><strong>float | length-2 tuple of float</strong></p>
<blockquoteclass="last">
<div><p>Which markers to plot.</p>
<ulclass="simple">
<li>every=None, every point will be plotted.</li>
<li>every=N, every N-th marker will be plotted starting with
marker 0.</li>
<li>every=(start, N), every N-th marker, starting at point
start, will be plotted.</li>
<li>every=slice(start, end, N), every N-th marker, starting at
point start, upto but not including point end, will be plotted.</li>
<li>every=[i, j, m, n], only markers at points i, j, m, and n
will be plotted.</li>
<li>every=0.1, (i.e. a float) then markers will be spaced at
approximately equal distances along the line; the distance
along the line between markers is determined by multiplying the
display-coordinate distance of the axes bounding-box diagonal
by the value of every.</li>
<li>every=(0.5, 0.1) (i.e. a length-2 tuple of float), the
same functionality as every=0.1 is exhibited but the first
marker will be 0.5 multiplied by the
display-cordinate-diagonal-distance along the line.</li>
</ul>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<pclass="rubric">Notes</p>
<p>Setting the markevery property will only show markers at actual data
points. When using float arguments to set the markevery property
on irregularly spaced data, the markers will likely not appear evenly
spaced because the actual data points do not coincide with the
theoretical spacing between markers.</p>
<p>When using a start offset to specify the first marker, the offset will
be from the first data point which may be different from the first
the visible data point if the plot is zoomed in.</p>
<p>If zooming in on a plot when using float arguments then the actual
data points that have markers will change because the distance between
markers is always determined from the display-coordinates
axes-bounding-box-diagonal regardless of the actual axes data limits.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.set_mec">
<codeclass="descname">set_mec</code><spanclass="sig-paren">(</span><em>val</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_mec" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for set_markeredgecolor</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.set_mew">
<codeclass="descname">set_mew</code><spanclass="sig-paren">(</span><em>val</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_mew" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for set_markeredgewidth</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.set_mfc">
<codeclass="descname">set_mfc</code><spanclass="sig-paren">(</span><em>val</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_mfc" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for set_markerfacecolor</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.set_mfcalt">
<codeclass="descname">set_mfcalt</code><spanclass="sig-paren">(</span><em>val</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_mfcalt" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for set_markerfacecoloralt</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.set_ms">
<codeclass="descname">set_ms</code><spanclass="sig-paren">(</span><em>val</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_ms" title="Permalink to this definition">¶</a></dt>
<dd><p>alias for set_markersize</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.set_picker">
<codeclass="descname">set_picker</code><spanclass="sig-paren">(</span><em>p</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_picker" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets the event picker details for the line.</p>
<p>ACCEPTS: float distance in points or callable pick function
<codeclass="descname">set_pickradius</code><spanclass="sig-paren">(</span><em>d</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_pickradius" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets the pick radius used for containment tests</p>
<codeclass="descname">set_solid_capstyle</code><spanclass="sig-paren">(</span><em>s</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_solid_capstyle" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">set_solid_joinstyle</code><spanclass="sig-paren">(</span><em>s</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_solid_joinstyle" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">set_transform</code><spanclass="sig-paren">(</span><em>t</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_transform" title="Permalink to this definition">¶</a></dt>
<dd><p>set the Transformation instance used by this artist</p>
<codeclass="descname">set_xdata</code><spanclass="sig-paren">(</span><em>x</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_xdata" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the data np.array for x</p>
<p>ACCEPTS: 1D array</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.set_ydata">
<codeclass="descname">set_ydata</code><spanclass="sig-paren">(</span><em>y</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.set_ydata" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the data np.array for y</p>
<p>ACCEPTS: 1D array</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.lines.Line2D.update_from">
<codeclass="descname">update_from</code><spanclass="sig-paren">(</span><em>other</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.Line2D.update_from" title="Permalink to this definition">¶</a></dt>
<dd><p>copy properties from other to self</p>
</dd></dl>
<dlclass="attribute">
<dtid="matplotlib.lines.Line2D.validCap">
<codeclass="descname">validCap</code><emclass="property"> = ('butt', 'round', 'projecting')</em><aclass="headerlink" href="#matplotlib.lines.Line2D.validCap" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="attribute">
<dtid="matplotlib.lines.Line2D.validJoin">
<codeclass="descname">validJoin</code><emclass="property"> = ('miter', 'round', 'bevel')</em><aclass="headerlink" href="#matplotlib.lines.Line2D.validJoin" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="attribute">
<dtid="matplotlib.lines.Line2D.zorder">
<codeclass="descname">zorder</code><emclass="property"> = 2</em><aclass="headerlink" href="#matplotlib.lines.Line2D.zorder" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.lines.VertexSelector">
<emclass="property">class </em><codeclass="descclassname">matplotlib.lines.</code><codeclass="descname">VertexSelector</code><spanclass="sig-paren">(</span><em>line</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.VertexSelector" title="Permalink to this definition">¶</a></dt>
<aclass="reference internal" href="#matplotlib.lines.VertexSelector.process_selected" title="matplotlib.lines.VertexSelector.process_selected"><codeclass="xref py py-meth docutils literal"><spanclass="pre">process_selected()</span></code></a> to do
something with the picks.</p>
<p>Here is an example which highlights the selected verts with red
<p>Initialize the class with a <aclass="reference internal" href="#matplotlib.lines.Line2D" title="matplotlib.lines.Line2D"><codeclass="xref py py-class docutils literal"><spanclass="pre">matplotlib.lines.Line2D</span></code></a>
instance. The line should already be added to some
<aclass="reference internal" href="axes_api.html#matplotlib.axes.Axes" title="matplotlib.axes.Axes"><codeclass="xref py py-class docutils literal"><spanclass="pre">matplotlib.axes.Axes</span></code></a> instance and should have the
picker property set.</p>
<dlclass="method">
<dtid="matplotlib.lines.VertexSelector.onpick">
<codeclass="descname">onpick</code><spanclass="sig-paren">(</span><em>event</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.VertexSelector.onpick" title="Permalink to this definition">¶</a></dt>
<dd><p>When the line is picked, update the set of selected indicies.</p>
<codeclass="descname">process_selected</code><spanclass="sig-paren">(</span><em>ind</em>, <em>xs</em>, <em>ys</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.lines.VertexSelector.process_selected" title="Permalink to this definition">¶</a></dt>
<dd><p>Default “do nothing” implementation of the