Matplotlib Line2d Unexpected Behavior
This is a minimum working example. I expect the following code to draw a line from (-2.33,10) to (4.33,-10), but the line I get is totally different. What is wrong? import matplotl
Solution 1:
You have given line2D (x1, y1), (x2, y2)
, but you need to give it (x1, x2), (y1, y2)
line = matplotlib.lines.Line2D((-2.33,4.33),(10,-10.0))
Post a Comment for "Matplotlib Line2d Unexpected Behavior"