... 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
sudo cp libjpeg.a /usr/local/lib/
sudo cp *.h /usr/local/include/
cp scripts/makefile.macosx Makefile
sudo make install
You then need to follow the build instructions for gd, gdmodule and
Here's an example script ....
from matplotlib.matlab import *
t = arange(0.0, 3.0, 0.01)
for i in range(1,10):
s = sin(2*pi*i*t)
savefig('plot%02d' % i)
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 ....