plotting data against a time axis

Michele Simionato mis6 at pitt.edu
Wed Nov 19 01:15:40 EST 2003


Gerrit Holl <gerrit at nl.linux.org> wrote in message news:<mailman.854.1069190738.702.python-list at python.org>...
> I have chosen for the solution by Alexander Schmolck, who advised
> to have a second look at Gnuplot, because it turned out to be easy
> to learn. I have been playing with it for a few hours. The result
> has been published on my homepage:
> 
> http://people.nl.linux.org/~gerrit/stats.png
> 
> It is automatically updated every day.
> Only disadvantage of this solution: I am not using Python for it ;)
> 

Here is how I do use gnuplot from Python:

import os
gnuplot=os.popen('gnuplot -persist','w')
commands="""\
set title 'Simple diagram'
plot x*x
"""
gnuplot.write(commands)
gnuplot.close()
print "Done"

Actually, my first usage of Python, a while back, was to generate
gnuplot code ;) BTW, what that graphics does mean, for mere mortals
who don't know Dutch?

                                    Michele




More information about the Python-list mailing list