[Pythonmac-SIG] MacPython and Gnuplot
David Warde-Farley
dwf at cs.toronto.edu
Thu Jan 29 21:01:12 CET 2009
On 29-Jan-09, at 8:29 AM, Matt Foster wrote:
> On Tue, Jan 27, 2009 at 5:33 AM, raf . <arawak1 at yahoo.com> wrote:
>> I have MacPython 2.5 on my iMac. I also have Gnuplot.app Version
>> 4,2.
>> How do I get them to work together?
>>
>> Can someone show a simple example or instructions. They both came
>> with my
>> iMac.
>>
>> ron francis
>
> You'll probably need to get something like gnuplot.py:
> http://gnuplot-py.sourceforge.net/
> There's a demo file inside of the package that will show you how to
> get started.
>
> You might need to use something like, too:
>
> import Gnuplot
> Gnuplot.GnuplotOpts.gnuplot_command =
> '/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot'
I might also point out that matplotlib is available for OS X, with a
convenient universal installer, and IMHO produces much nicer plots
than Gnuplot (and has amazing documentation). If you haven't tried it
out and are not particularly married to Gnuplot, I strongly recommend
it:
http://matplotlib.sourceforge.net/
David
More information about the Pythonmac-SIG
mailing list