How to save an array of plots as a PDF?

Hi - as the title says, there is an array of plots and I want to save them in a single PDF using CairoMakie. To do this in R, I would do the following:

ml <- gridExtra::marrangeGrob(list_of_plots, nrow=3, ncol=3)
ggplot2::ggsave("/output_path/result.pdf", ml, width=25, height=17.5)

Is there an equivalent of this in Pumas? Thanks

You can use the report function.

Here’s a MWE:

using CairoMakie
using PumasUtilities

report([lines(1:10), lines(11:20)], title = "sometitle")
1 Like