# Strange behavior of plot---plot successful only if it is the last line of the code

**URL:** <https://discourse.julialang.org/t/strange-behavior-of-plot-plot-successful-only-if-it-is-the-last-line-of-the-code/108952>\
**Category:** Visualization\
**Tags:** plots\
**Created:** [January 18, 2024, 11:52am UTC](https://discourse.julialang.org/t/strange-behavior-of-plot-plot-successful-only-if-it-is-the-last-line-of-the-code/108952 "2024-01-18T11:52:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [January 18, 2024, 1:06pm UTC](https://discourse.julialang.org/t/strange-behavior-of-plot-plot-successful-only-if-it-is-the-last-line-of-the-code/108952/4 "2024-01-18T13:06:48Z")

</div>

> [@Make plots in sepeare windows](https://discourse.julialang.org/t/make-plots-in-sepeare-windows/45815):
>
> I want to plot different arrays and show the plot in separate windows when I run the julia script from the REPL using the include("\<name\>.jl") I searched it on the internet and I got to know about reuse = false, but when I run this: p1 = plot([1,2,3,4,5],[1,2,3,4,5]) #Linear display(p1) p2 = plot([1,2,3,4,5],[1,4,9,16,25],resue = false) #quadratic display(p2) I get only one plot of the quadratic. I want to see the linear in a different window and the quadratic window in a separate window…

---

_[View the full topic](https://discourse.julialang.org/t/strange-behavior-of-plot-plot-successful-only-if-it-is-the-last-line-of-the-code/108952)._
