# Stop adding plots with plot! and start a new plot

**URL:** https://discourse.julialang.org/t/stop-adding-plots-with-plot-and-start-a-new-plot/26561
**Category:** New to Julia
**Created:** [July 19, 2019, 7:44pm UTC](https://discourse.julialang.org/t/stop-adding-plots-with-plot-and-start-a-new-plot/26561 "2019-07-19T19:44:04Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Masacroso](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/masacroso/32/9412_2.png) [@Masacroso](https://discourse.julialang.org/u/Masacroso)
#### Post date: [July 19, 2019, 7:44pm UTC](https://discourse.julialang.org/t/stop-adding-plots-with-plot-and-start-a-new-plot/26561/1 "2019-07-19T19:44:04Z")

</div>

I have a code with two functions, both of them uses the `plot!` command (I need it), however I dont know how to say to Julia when start to adding the plots in a new empty plot. There is a command to restart the action of `plot!` to a new canvas?

---

<div class="post-metadata">

### Author: ![BioTurboNick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bioturbonick/32/6380_2.png) [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)
#### Post date: [July 19, 2019, 7:59pm UTC](https://discourse.julialang.org/t/stop-adding-plots-with-plot-and-start-a-new-plot/26561/2 "2019-07-19T19:59:32Z")

</div>

Just take out the exclamation point, unless you mean something else?

---

<div class="post-metadata">

### Author: ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)
#### Post date: [July 19, 2019, 8:17pm UTC](https://discourse.julialang.org/t/stop-adding-plots-with-plot-and-start-a-new-plot/26561/3 "2019-07-19T20:17:06Z")

</div>

Or, if for some reason you can’t change `plot!` to `plot`, just use an intermediary `plot()` without arguments to get a fresh plot.

---

<div class="post-metadata">

### Author: ![Masacroso](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/masacroso/32/9412_2.png) [@Masacroso](https://discourse.julialang.org/u/Masacroso)
#### Post date: [July 19, 2019, 8:17pm UTC](https://discourse.julialang.org/t/stop-adding-plots-with-plot-and-start-a-new-plot/26561/4 "2019-07-19T20:17:34Z")

</div>

As I said, I can’t quit the commands `plot!`, just that, when I decided, the new plots start adding in a new canvas.

---

<div class="post-metadata">

### Author: ![Masacroso](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/masacroso/32/9412_2.png) [@Masacroso](https://discourse.julialang.org/u/Masacroso)
#### Post date: [July 19, 2019, 8:18pm UTC](https://discourse.julialang.org/t/stop-adding-plots-with-plot-and-start-a-new-plot/26561/5 "2019-07-19T20:18:17Z")

</div>

I will try it, probably this would work, thank you.
