Re: [matplotlib-devel] Multipage pdf files

2009-01-06 Thread Jouni K . Seppänen
Jouni K. Seppänen 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 figure.savefig(pdfpages, format='

Re: [matplotlib-devel] Multipage pdf files

2009-01-02 Thread Jouni K . Seppänen
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 &

Re: [matplotlib-devel] Multipage pdf files

2009-01-02 Thread Drain, Theodore R
little less hacky in that it doesn't 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: [matpl

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 ea