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.Unit: Pixel.


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

See Also