Save multiple plots on separate pages of one PDF

Hi,

is there a way to save multiple plots, more precisely multiple figures generated with Plots.jl, on separate pages of a single PDF file?

1 Like

There is nothing built in, as far as I know, but you can easily combine the pdfs with tools like pdfjam or pdftk

1 Like

My two cents on this is that it is a basic must-have feature for a plotting package. When generating 10-1000 of plots in automated ways having to externally adds an extra step of complexity.

4 Likes

Did you get any practical solution to this?

I use pdftk from Julia in a Linux system. For example:

files = [
    "pull-uy.pdf",
    "pull-ur.pdf",
    "pull-tau.pdf",
    "pull-sigma.pdf",
    "pull-uy-fy.pdf",
]

run(`pdftk $files cat output all-charts.pdf`);