Weird. I've just written a blog post on plotting data
from a sensor log using gnuplot. Dougie's answer if probably best if you want to keep it all within Python.
gnuplot is quite handy when you are experimenting but you need the data in a separate text file.