def polyline ( * points ) : return Path ( * [ Line ( points [ i ] , points [ i + 1 ] ) for i in range ( len ( points ) - 1 ) ] )
create concave polygon from given points in python
Converts a list of points to a Path composed of lines connecting those points ( i . e . a linear spline or polyline ) . See also polygon () .
def polyline(*points):
    """Converts a list of points to a Path composed of lines connecting those 
    points (i.e. a linear spline or polyline).  See also `polygon()`."""
    return Path(*[Line(points[i], points[i+1])
                  for i in range(len(points) - 1)])