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 matplotlib.pyplot as plt
import matplotlib
fig = plt.figure()
ax = fig.add_subplot(111)
ax.axis((-10,10,-10,10))
line = matplotlib.lines.Line2D((-2.33,10.0),(4.33,-10.0))
ax.add_line(line)
plt.show()
