Re: [Matplotlib-users] Non-X11 fallback on import

2009-06-01 Thread Drain, Theodore R
Barker [mailto:chris.bar...@noaa.gov] > Sent: Monday, June 01, 2009 11:45 AM > To: matplotlib-users@lists.sourceforge.net > Subject: Re: [Matplotlib-users] Non-X11 fallback on import > > Alexander Lamaison wrote: > > I would like it to work > > is to use the default backend i

Re: [Matplotlib-users] Non-X11 fallback on import

2009-06-01 Thread Christopher Barker
Alexander Lamaison wrote: > I would like it to work > is to use the default backend if X is available and, otherwise, fall > back to using the Agg backend. How can I do this? I had a similar need a good while back with wxPython. I found some C code on the net that tries to connect to an X server

[Matplotlib-users] Non-X11 fallback on import

2009-06-01 Thread Alexander Lamaison
I have a script that uses matplotlib to plot graphs both displayed as a GUI and as PDF documents. The script may need to be run from remote terminals without X11-passthrough so they way I would like it to work is to use the default backend if X is available and, otherwise, fall back to using the A