# Open new window for each plot

**URL:** <https://discourse.julialang.org/t/open-new-window-for-each-plot/47130>\
**Category:** New to Julia\
**Created:** [September 23, 2020, 11:23am UTC](https://discourse.julialang.org/t/open-new-window-for-each-plot/47130 "2020-09-23T11:23:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pascal-mueller](https://avatars.discourse-cdn.com/v4/letter/p/e47774/32.png) [@pascal-mueller](https://discourse.julialang.org/u/pascal-mueller)\
**Post date:** [September 23, 2020, 11:23am UTC](https://discourse.julialang.org/t/open-new-window-for-each-plot/47130/1 "2020-09-23T11:23:47Z")

</div>

Hi,

how can I make sure I get a new window for each plot when using the Plots package?

E.g. if we have

```julia
p1 = getPlotOne()
p2 = getPlotTwo()

```

How do I now get two separate windows?

---

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [September 23, 2020, 1:37pm UTC](https://discourse.julialang.org/t/open-new-window-for-each-plot/47130/2 "2020-09-23T13:37:45Z")

</div>

Unfortunately I do not think you can do that yet with Plots. My workaround is to save the plots to PDF files and open the PDF files in separate windows.

(if going that road, it might be useful to add

```julia
ENV["GKSwstype"] = "nul"

```

which will disable the plots windows completely (if not here, this is useful if using a script to build several plots without the need to interact with them).

**EDIT: Apparently now there is a solution, using pyplot:**

```julia
using Plots
pyplot()
p1 = plot(rand(5))
p2 = plot(rand(50), reuse=false)

```

[https://stackoverflow.com/questions/64022527/show-two-plots-in-separate-windows-using-plots](https://stackoverflow.com/questions/64022527/show-two-plots-in-separate-windows-using-plots)

---

<div class="post-metadata">

**Author:** ![umbe](https://avatars.discourse-cdn.com/v4/letter/u/f19dbf/32.png) [@umbe](https://discourse.julialang.org/u/umbe)\
**Post date:** [September 23, 2020, 1:51pm UTC](https://discourse.julialang.org/t/open-new-window-for-each-plot/47130/3 "2020-09-23T13:51:58Z")

</div>

I suggest to take a look [here](https://discourse.julialang.org/t/pyplot-plot-window-does-not-pop-up-in-atom/17435)
