You are reading an old version of the documentation (v2.1.0). For the latest version see https://matplotlib.org/stable/api/lines_api.html
matplotlib
Fork me on GitHub


Travis-CI:

Table Of Contents

This Page

lines

matplotlib.lines

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

Classes

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.

Functions

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