I want to draw graph using a list of (x,y)
pairs instead of using two lists, one of X's and one of Y's. Something like this:
a = [[1,2],[3,3],[4,4],[5,2]]
plt.plot(a, 'ro')
Rather than:
plt.plot([1,3,4,5], [2,3,4,2])
Suggestions?
question from:https://stackoverflow.com/questions/2282727/draw-points-using-matplotlib-pyplot-x1-y1-x2-y2