line_to method

line_to(self, x, y)

Appends a line segment to the current figure. The starting point is the end point of the current figure.


def line_to(self, x, y):
    ...
ParameterTypeDescription
xfloatThe x-coordinate of the endpoint of the line segment.
yfloatThe y-coordinate of the endpoint of the line segment.

See Also