Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multipage pdf possible? #105

Closed
nbecker opened this issue Nov 29, 2013 · 1 comment
Closed

multipage pdf possible? #105

nbecker opened this issue Nov 29, 2013 · 1 comment

Comments

@nbecker
Copy link

nbecker commented Nov 29, 2013

Is it possible to create multipage pdfs, and are there any examples?

@jankatins
Copy link
Contributor

It should be possible if it is possible via matplotlib: http://matplotlib.org/faq/howto_faq.html#save-multiple-plots-to-one-pdf-file

so, something along these lines:

gg = ggplot(....)
gg.__repr__() # or gg.draw() if you apply the changes in #106 
gg2 = ggplot(....)
gg2.__repr__()
# now we have the plots in matplotlibs figures which can be saved by savefig()
from matplotlib.backends.backend_pdf import PdfPages
pp = PdfPages('multipage.pdf')
pp.savefig()
pp.close()

(completely untested!)

@glamp glamp closed this as completed May 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants