# Makie - Reuse axis / Clear plots

**URL:** https://discourse.julialang.org/t/makie-reuse-axis-clear-plots/58160
**Category:** Visualization
**Tags:** makie
**Created:** [March 29, 2021, 11:26am UTC](https://discourse.julialang.org/t/makie-reuse-axis-clear-plots/58160 "2021-03-29T11:26:17Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![nandoconde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nandoconde/32/19497_2.png) [@nandoconde](https://discourse.julialang.org/u/nandoconde)
#### Post date: [March 29, 2021, 11:26am UTC](https://discourse.julialang.org/t/makie-reuse-axis-clear-plots/58160/1 "2021-03-29T11:26:17Z")

</div>

Hello!! Is there a way to clean everything that has been plot into an `Axis` but keepong the axis?

I know of convenient methods to create a new `Axis` within a given fugure, passing a `Dict` with parameters in order to set it up, but I’d like to preserve one that I have already created because it is linked to another axis. Is this possible?

Bonus: I’ve tried to look it up in the docs, but I can’t find it anywhere. If it shows up, could you point me to where it is, so I can have it at hand for future reference? Thanks!

---

<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: [March 29, 2021, 3:24pm UTC](https://discourse.julialang.org/t/makie-reuse-axis-clear-plots/58160/2 "2021-03-29T15:24:48Z")

</div>

Since right now there’s this  
[http://makie.juliaplots.org/stable/makielayout/axis.html#Deleting-plots](http://makie.juliaplots.org/stable/makielayout/axis.html#Deleting-plots)

---

<div class="post-metadata">

### Author: ![nandoconde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nandoconde/32/19497_2.png) [@nandoconde](https://discourse.julialang.org/u/nandoconde)
#### Post date: [March 29, 2021, 5:06pm UTC](https://discourse.julialang.org/t/makie-reuse-axis-clear-plots/58160/3 "2021-03-29T17:06:12Z")

</div>

Thanks! Maybe it’d be great to have this function documented in the API section, and an example incorporated to the “Layout Tutorial” (maybe even the “Basic Tutorial”?).

Thanks a bunch.

---

<div class="post-metadata">

### Author: ![mroavi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mroavi/32/8804_2.png) [@mroavi](https://discourse.julialang.org/u/mroavi)
#### Post date: [April 12, 2022, 4:24pm UTC](https://discourse.julialang.org/t/makie-reuse-axis-clear-plots/58160/4 "2022-04-12T16:24:20Z")

</div>

I have the same question and, unfortunately, the link is broken. Could you post the solution?

---

<div class="post-metadata">

### Author: ![mroavi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mroavi/32/8804_2.png) [@mroavi](https://discourse.julialang.org/u/mroavi)
#### Post date: [April 12, 2022, 4:36pm UTC](https://discourse.julialang.org/t/makie-reuse-axis-clear-plots/58160/5 "2022-04-12T16:36:42Z")

</div>

Found it: [https://makie.juliaplots.org/stable/documentation/layoutables/#deleting\_layoutables](https://makie.juliaplots.org/stable/documentation/layoutables/#deleting_layoutables)

> To remove layoutables from their layout and the figure or scene, use `delete!(layoutable)`.

---

<div class="post-metadata">

### Author: ![Kolaru](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kolaru/32/4574_2.png) [@Kolaru](https://discourse.julialang.org/u/Kolaru)
#### Post date: [June 13, 2023, 4:50pm UTC](https://discourse.julialang.org/t/makie-reuse-axis-clear-plots/58160/6 "2023-06-13T16:50:41Z")

</div>

It moved yet again:

[https://docs.makie.org/stable/examples/blocks/axis/index.html#deleting\_plots](https://docs.makie.org/stable/examples/blocks/axis/index.html#deleting_plots)

---

<div class="post-metadata">

### Author: ![bert](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@bert](https://discourse.julialang.org/u/bert)
#### Post date: [April 2, 2024, 4:31pm UTC](https://discourse.julialang.org/t/makie-reuse-axis-clear-plots/58160/7 "2024-04-02T16:31:56Z")

</div>

Now at [Axis · Makie](https://docs.makie.org/stable/reference/blocks/axis/index.html#deleting_plots)
