... I'm not sure why I'd want to use gtk instead of
> wx anyhow, given the choice.
One more option. If all you want is the batch generation of figures
offline with no display, you can use either the PS or GD backends. PS
only requires Numeric. gd, however, takes some energy to build.
But it works: I just built all the prereqs on OSX from source and it
worked perfectly.
You need
libjpeg - http://freshmeat.net/redir/libjpeg/5665/url_tgz/jpegsrc.v6b.tar.gz
./configure
sudo make
sudo cp libjpeg.a /usr/local/lib/
sudo cp *.h /usr/local/include/
libpng - http://umn.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.5.tar.gz
cp scripts/makefile.macosx Makefile
sudo make install
You then need to follow the build instructions for gd, gdmodule and
dependencies at
http://matplotlib.sourceforge.net/backends.html#GD
Here's an example script ....
import matplotlib
matplotlib.use('GD')
from matplotlib.matlab import *
t = arange(0.0, 3.0, 0.01)
for i in range(1,10):
figure(1)
s = sin(2*pi*i*t)
plot(t,s)
savefig('plot%02d' % i)
close(1)
I put all this here mainly for archival purposes in case someone wants
to use matplotlib / OSX / gdmodule. We'll get the wx thing figured
out too ....
JDH