From: Giacomo Boffi on 8 Jun 2010 05:43 Giacomo Boffi <giacomo.boffi(a)polimi.it> writes: > Hans Georg Schaathun <H.Schaathun(a)surrey.ac.uk> 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.png', 'wb' > pylab.savefig('foo.png', format='pdf') > > that's all either matplotlib.use('cairo.pdf') .... pylab.savefig('foo.pdf') -- le mie sacrosante questioni di principio VS gli sciocchi puntigli di quel cretino del mio vicino
First
|
Prev
|
Pages: 1 2 3 Prev: bz2 module doesn't work properly with all bz2 files Next: Replace in large text file ? |