You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Applications are open for the 2018 John Hunter Matplotlib Summer Fellowship. Apply now!
Version 2.2.2.post1744+g9382a0569
Fork me on GitHub

Table Of Contents



This module contains all the 2D line class which can draw with a variety of line styles, markers and colors.


Line2D(xdata, ydata[, linewidth, linestyle, ...]) A line - the line can have both a solid linestyle connecting all the vertices, and a marker at each vertex.
VertexSelector(line) Manage the callbacks to maintain a list of selected vertices for matplotlib.lines.Line2D.


segment_hits(cx, cy, x, y, radius) Determine if any line segments are within radius of a point.