From: <jk...@ik...> - 2007-10-02 08:01:57
|
"Daniel O'Connor" <da...@do...> writes: > I am trying to use matplotlib non-interactively but if I don't have > DISPLAY set then wx barfs even though I have tried forcing the backend, > etc.. This should probably be in the FAQ... you need to set the backend before you import pylab, because importing pylab reads your matplotlibrc file and does all sorts of setup: import matplotlib matplotlib.use('agg') import pylab -- Jouni K. Seppänen http://www.iki.fi/jks |