# How do I clear a plot using Plots?

**URL:** <https://discourse.julialang.org/t/how-do-i-clear-a-plot-using-plots/26996>\
**Category:** New to Julia\
**Created:** [July 30, 2019, 9:02pm UTC](https://discourse.julialang.org/t/how-do-i-clear-a-plot-using-plots/26996 "2019-07-30T21:02:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Iulian.Cioarca](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iulian.cioarca/32/30166_2.png) [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Post date:** [July 31, 2019, 5:15am UTC](https://discourse.julialang.org/t/how-do-i-clear-a-plot-using-plots/26996/4 "2019-07-31T05:15:50Z")

</div>

In order to do it programatically my approach is to use InspectDR package(which is based on Gtk). This creates plot windows that can be closed by a dedicated function, as the developer of the package explains in this topic:

> [@How to close InspectDR plot window or update it?](https://discourse.julialang.org/t/how-to-close-inspectdr-plot-window-or-update-it/25787):
>
> Hi, Sorry for the noob question, but I searched through some documentation and examples of InspectDR and could not figure out how to close a plot window. Can someone point me in the right direction, please? I’m sure I missed something. Thank you! Some info about my task: I am plotting hundreds of signals in order to label them(I have a small GUI that blocks plotting the next signal until I tell it to) so the screen will fill up with windows. I thought of two solutions for this: close window …

I hope this helps.

---

_[View the full topic](https://discourse.julialang.org/t/how-do-i-clear-a-plot-using-plots/26996)._
