"batch" plots

... 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

    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


Here's an example script ....

import matplotlib
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 ....