With savefig("Spektren-CuP.ps",orientation="landscape"), the
>> diagram do not fill the whole a4 page. I think, this is related
>> to some configuration values, cause the resulting figure is not
>> an a4 page but a BBox. Any hints where to change that ?
> In your Spektren-CuP.ps, try adding "%%DocumentPaperSizes:
> A4" after the line that says "%%Orientation: landscape",
> hopefully that can get you by while I work on a real
> solution.
You will also need to change the default paper size in backend ps
before using it
import matplotlib.backends.backend_ps as ps
ps.defaultPaperSize = 8.26771, 11.69291 # A4 width and height in inches
import pylab
...and now make your plot...
Darren and I were discussing making this an rc parameter, so hopefully
this will be easier in the next release.
JDH
I committed the changes in cvs. There is now a validated ps.pagesize option
in .matplotlibrc, which defaults to 'letter'.
···
On Wednesday 27 April 2005 9:45 am, John Hunter wrote:
>> With savefig("Spektren-CuP.ps",orientation="landscape"), the
>> diagram do not fill the whole a4 page. I think, this is related
>> to some configuration values, cause the resulting figure is not
>> an a4 page but a BBox. Any hints where to change that ?
> In your Spektren-CuP.ps, try adding "%%DocumentPaperSizes:
> A4" after the line that says "%%Orientation: landscape",
> hopefully that can get you by while I work on a real
> solution.
You will also need to change the default paper size in backend ps
before using it
import matplotlib.backends.backend_ps as ps
ps.defaultPaperSize = 8.26771, 11.69291 # A4 width and height in
inches
import pylab
...and now make your plot...
Darren and I were discussing making this an rc parameter, so hopefully
this will be easier in the next release.
--
Darren S. Dale
Bard Hall
Department of Materials Science and Engineering
Cornell University
Ithaca, NY. 14850
dd55@...163...