# Open multiple plots in REPL

**URL:** <https://discourse.julialang.org/t/open-multiple-plots-in-repl/129269>\
**Category:** Visualization\
**Tags:** plots\
**Created:** [May 23, 2025, 9:37am UTC](https://discourse.julialang.org/t/open-multiple-plots-in-repl/129269 "2025-05-23T09:37:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CaG21](https://avatars.discourse-cdn.com/v4/letter/c/c2a13f/32.png) [@CaG21](https://discourse.julialang.org/u/CaG21)\
**Post date:** [May 23, 2025, 9:37am UTC](https://discourse.julialang.org/t/open-multiple-plots-in-repl/129269/1 "2025-05-23T09:37:45Z")

</div>

I am trying to generate several plots while working in the REPL, that must be displayed individually (i.e., a new window for each plot). When I am trying to do so, however, each new plot replaces the old plot in the same window. To be clearer, I have the following code

```julia
using Plots

x = 1:10
display(plot(x,x, label="linear"))
display(plot(x,x.^2, label="quadratic"))

```

I expect two different windows to open and display a plot for each. However, running line 3, a window opens, showing the “linear” plot. Then, running line 4, the “linear” plot disappears and it is replaced by te “quadratic” plot, with no new window opening.  
I tried to change backend, using Makie.jl instead of Plots.jl, using the `gui()` command. Nothing changes.  
How can I have two different windows opening?

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [May 23, 2025, 9:50am UTC](https://discourse.julialang.org/t/open-multiple-plots-in-repl/129269/2 "2025-05-23T09:50:24Z")

</div>

Please check [this post](https://discourse.julialang.org/t/how-to-display-multiple-plot-windows/82246/2).

---

<div class="post-metadata">

**Author:** ![CaG21](https://avatars.discourse-cdn.com/v4/letter/c/c2a13f/32.png) [@CaG21](https://discourse.julialang.org/u/CaG21)\
**Post date:** [May 23, 2025, 9:56am UTC](https://discourse.julialang.org/t/open-multiple-plots-in-repl/129269/3 "2025-05-23T09:56:25Z")

</div>

Ohhh, that works. I completely missed that post
