"Daniel O'Connor" <[EMAIL PROTECTED]> 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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users