# Export just the plotting area with Makie

**URL:** https://discourse.julialang.org/t/export-just-the-plotting-area-with-makie/63629
**Category:** Visualization
**Tags:** question, makie
**Created:** [June 27, 2021, 5:22am UTC](https://discourse.julialang.org/t/export-just-the-plotting-area-with-makie/63629 "2021-06-27T05:22:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![EvoArt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evoart/32/25357_2.png) [@EvoArt](https://discourse.julialang.org/u/EvoArt)
#### Post date: [June 27, 2021, 5:22am UTC](https://discourse.julialang.org/t/export-just-the-plotting-area-with-makie/63629/1 "2021-06-27T05:22:56Z")

</div>

Is it possible to save just the plotting area as a PDF from Cairo Makie? Hiding decorations and spines gets close. But there is still a small border around the output.

---

<div class="post-metadata">

### Author: ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)
#### Post date: [June 27, 2021, 5:52am UTC](https://discourse.julialang.org/t/export-just-the-plotting-area-with-makie/63629/2 "2021-06-27T05:52:07Z")

</div>

You can probably just do `save("plot.pdf", ax.scene)`, that scene is the plotting area.

---

<div class="post-metadata">

### Author: ![EvoArt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evoart/32/25357_2.png) [@EvoArt](https://discourse.julialang.org/u/EvoArt)
#### Post date: [June 27, 2021, 6:37am UTC](https://discourse.julialang.org/t/export-just-the-plotting-area-with-makie/63629/3 "2021-06-27T06:37:30Z")

</div>

Works a charm. Thank you.
