# How to save an array of plots as a PDF?

**URL:** <https://discourse.pumas.ai/t/how-to-save-an-array-of-plots-as-a-pdf/938>\
**Category:** How-to\
**Created:** [September 20, 2023, 1:40am UTC](https://discourse.pumas.ai/t/how-to-save-an-array-of-plots-as-a-pdf/938 "2023-09-20T01:40:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahulub3r](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pumas.ai/rahulub3r/32/182_2.png) [@Rahulub3r](https://discourse.pumas.ai/u/Rahulub3r)\
**Post date:** [September 20, 2023, 1:40am UTC](https://discourse.pumas.ai/t/how-to-save-an-array-of-plots-as-a-pdf/938/1 "2023-09-20T01:40:11Z")

</div>

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:

```auto
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

---

<div class="post-metadata">

**Author:** ![storopoli](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pumas.ai/storopoli/32/190_2.png) [@storopoli](https://discourse.pumas.ai/u/storopoli)\
**Post date:** [September 20, 2023, 2:01pm UTC](https://discourse.pumas.ai/t/how-to-save-an-array-of-plots-as-a-pdf/938/2 "2023-09-20T14:01:43Z")

</div>

You can use the `report` function.

Here’s a MWE:

```julia
using CairoMakie
using PumasUtilities

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

```
