Re: Plotting in batch with no display

2010-06-08 Thread Giacomo Boffi
Giacomo Boffi writes: > Hans Georg Schaathun writes: > >> : import matplotlib >> : matplotlib.use('agg') >> : import pylab >> : pylab.plot([1, 3, 5]) >> : fig = file('foo.png', 'wb') >> : pylab.savefig(fig, format='png') >> : fig.close() >> >> Raster graphics i

Re: Plotting in batch with no display

2010-06-08 Thread Giacomo Boffi
Hans Georg Schaathun writes: > : import matplotlib > : matplotlib.use('agg') > : import pylab > : pylab.plot([1, 3, 5]) > : fig = file('foo.png', 'wb') > : pylab.savefig(fig, format='png') > : fig.close() > > Raster graphics is not good enough #ig = file('foo.p

Re: Plotting in batch with no display

2010-06-07 Thread Mark Lawrence
On 07/06/2010 08:41, Hans Georg Schaathun wrote: On Sat, 5 Jun 2010 16:10:01 + (UTC), Tim Harig wrote: : On 2010-06-05, Hans Georg Schaathun wrote: :> Raster graphics is not good enough, I will need a backend which :> does vector graphics and pdf output. AFAICS from the FAQ at :> s

Re: Plotting in batch with no display

2010-06-07 Thread Tim Harig
On 2010-06-07, Hans Georg Schaathun wrote: > On Sat, 5 Jun 2010 16:10:01 + (UTC), Tim Harig > wrote: >: On 2010-06-05, Hans Georg Schaathun wrote: >: > Raster graphics is not good enough, I will need a backend which >: > does vector graphics and pdf output. AFAICS from the FAQ at >: > sou

Re: Plotting in batch with no display

2010-06-07 Thread Hans Georg Schaathun
On Sat, 5 Jun 2010 16:10:01 + (UTC), Tim Harig wrote: : On 2010-06-05, Hans Georg Schaathun wrote: : > Raster graphics is not good enough, I will need a backend which : > does vector graphics and pdf output. AFAICS from the FAQ at : > sourceforge, agg only supports raster and png. Cairo

Re: Plotting in batch with no display

2010-06-05 Thread Tim Harig
On 2010-06-05, Hans Georg Schaathun wrote: > Raster graphics is not good enough, I will need a backend which > does vector graphics and pdf output. AFAICS from the FAQ at > sourceforge, agg only supports raster and png. Cairo supports > vector graphics and PDF, but I cannot find any information

Re: Plotting in batch with no display

2010-06-05 Thread Hans Georg Schaathun
On Fri, 04 Jun 2010 22:27:33 -, exar...@twistedmatrix.com wrote: : It's possible to plot with matplotlib without a display. I'm not : surprised you didn't figure out how, though, it's not all that obvious. Thank you very much. That's a good start. Do you know of any good documentatio

Re: Plotting in batch with no display

2010-06-05 Thread asdef
exar...@twistedmatrix.com writes: > It's possible to plot with matplotlib without a display. I'm not > surprised you didn't figure out how, though, it's not all that > obvious. http://matplotlib.sourceforge.net/faq/howto_faq.html#plotting-howto , | Generate images without having a window po

Re: Plotting in batch with no display

2010-06-04 Thread exarkun
On 08:01 pm, h.schaat...@surrey.ac.uk wrote: Admittedly not the strongest reason, but yet an important one, for switching from Matlab to python/numpy/scipy/matplotlib, is that Matlab is very cumbersome to run in batch. Now I discover that some of the matplotlib.pyplot functions (incl. plot and c

Re: Plotting in batch with no display

2010-06-04 Thread Emile van Sebille
On 6/4/2010 1:01 PM Hans Georg Schaathun said... Admittedly not the strongest reason, but yet an important one, for switching from Matlab to python/numpy/scipy/matplotlib, is that Matlab is very cumbersome to run in batch. Now I discover that some of the matplotlib.pyplot functions (incl. plot a

Plotting in batch with no display

2010-06-04 Thread Hans Georg Schaathun
Admittedly not the strongest reason, but yet an important one, for switching from Matlab to python/numpy/scipy/matplotlib, is that Matlab is very cumbersome to run in batch. Now I discover that some of the matplotlib.pyplot functions (incl. plot and contour) insist on opening an X11 window (just