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
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,
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
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