Re: [Matplotlib-users] RuntimeError: could not open display

2011-09-01 Thread CompBio
First, you folks respond faster than lightning -- I can't keep up! Second, thanks for the tip -- that's definitely more elegant than my callow approach. John Hunter-4 wrote: > > On Thu, Sep 1, 2011 at 1:23 PM, CompBio wrote: > >> BTW, the reason I specify a PDF bac

Re: [Matplotlib-users] RuntimeError: could not open display

2011-09-01 Thread CompBio
the scenes" such as an X-window display. It's working the way I want now, so I assume that's what it's doing. Benjamin Root-2 wrote: > > On Thursday, September 1, 2011, CompBio wrote: >> >> I'm trying to get a script to work in batch mode to produce

[Matplotlib-users] RuntimeError: could not open display

2011-09-01 Thread CompBio
I'm trying to get a script to work in batch mode to produce a large number of plots. I've got the following sequence of imports in a matplotlib Python script: import matplotlib, os, sys ... if file_ext == 'png' : sys.stderr.write('Using PNG output format\n') matplotlib.use('agg') elif fi