I am making a pyplot graph with a set of points using:
plt.plot([range(0,10)], [dictionary[key]],'bo')
This correctly draws the points as I expect, however I also want a line to be drawn between these points. I can’t find a way to do this with pyplot, I assume it’s trivial.
Can someone explain how I can do this?
In your case
[range(0,10)]is a list of list. Hence, you are plotting 10 points instead of a line. Try