Re: [matplotlib-devel] Multipage pdf files

2009-01-06 Thread Jouni K . Seppänen
Jouni K. Seppänen j...@iki.fi writes: Or perhaps the user-visible object doesn't need to be the same PdfFile that is used internally I ended up doing this, calling the object PdfPages. I also gave it a savefig method so you can do pdfpages.savefig(figure) in addition to

Re: [matplotlib-devel] Multipage pdf files

2009-01-02 Thread Michael Droettboom
It's slightly hackish, but would it be possible to do an isinstance check in savefig, and if the first arg is a PdfFile, set format to pdf automatically, and if format is set to something else raise an exception? A little hackish because it doesn't necessarily scale to other formats easily,

Re: [matplotlib-devel] Multipage pdf files

2009-01-02 Thread Drain, Theodore R
depend on coding a specific class into savefig. Ted -Original Message- From: Michael Droettboom [mailto:md...@stsci.edu] Sent: Friday, January 02, 2009 7:27 AM To: matplotlib-devel@lists.sourceforge.net Subject: Re: [matplotlib-devel] Multipage pdf files It's slightly hackish

[matplotlib-devel] Multipage pdf files

2009-01-01 Thread Jouni K . Seppänen
I added support to the pdf backend for multipage pdf files. The current API (which I'm not entirely happy with) is that you create a PdfFile object, plot your figures, saving each one to the PdfFile object, and then close the object. The part I'm unhappy about is that because PdfFile is a