[Tutor] Graphs

Bill Mill bill.mill at gmail.com
Sun Sep 5 03:27:19 CEST 2004


Try the Gnuplot module (http://gnuplot-py.sourceforge.net/). Works on
(at least) windows and linux. Here's how easy it is to graph y = x*2:

In [1]: import Gnuplot

In [2]: g = Gnuplot.Gnuplot()

In [3]: g.plot('x**2')

You can get from there to some really complicated graphics quickly and
easily. I've used it extensively, and it's a joy to work with; the
python module is easier than working with the native Gnuplot.

Also, I think if you download IPython (http://ipython.scipy.org/),
which you should, then Gnuplot comes with it. But I could be wrong. As
always, RTFM when downloading stuff.

Peace
Bill Mill

On Fri, 03 Sep 2004 01:08:28 -0700, Conrad <linux-user at softhome.net> wrote:
> While were on the topic of graphs, does anyone know a module that can
> graph equations (y = x*2). I've looked at SciPy, but that seems a little
> advanced.
> 
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>


More information about the Tutor mailing list