# How to create to separate, simultaneously coexisting plot windows

**URL:** <https://discourse.julialang.org/t/how-to-create-to-separate-simultaneously-coexisting-plot-windows/55626>\
**Category:** Visualization\
**Tags:** plotting, makie, makielayout\
**Created:** [February 19, 2021, 3:58pm UTC](https://discourse.julialang.org/t/how-to-create-to-separate-simultaneously-coexisting-plot-windows/55626 "2021-02-19T15:58:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uroc327](https://avatars.discourse-cdn.com/v4/letter/u/eb8c5e/32.png) [@Uroc327](https://discourse.julialang.org/u/Uroc327)\
**Post date:** [February 19, 2021, 3:58pm UTC](https://discourse.julialang.org/t/how-to-create-to-separate-simultaneously-coexisting-plot-windows/55626/1 "2021-02-19T15:58:16Z")

</div>

Hi!  
How can I create to separate windows, where each shows a Figure / Scene?  
When I try to create two `Figure()`s, I can only show one at a time. The same is true for `Scene()`s.

```julia
fig1 = Figure()
# add axes, plots, labels, widgets to fig1
display(fig1)

fig2 = Figure()
# add stuff to fig2
display(fig2)

```

---

<div class="post-metadata">

**Author:** ![ffreyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ffreyer/32/21569_2.png) [@ffreyer](https://discourse.julialang.org/u/ffreyer)\
**Post date:** [February 19, 2021, 4:35pm UTC](https://discourse.julialang.org/t/how-to-create-to-separate-simultaneously-coexisting-plot-windows/55626/2 "2021-02-19T16:35:39Z")

</div>

Currently you can only have one window open with GLMakie. There are some things that assume only one active window (e.g. shader compilation) that need to get refactored before we can have multiple windows.

---

<div class="post-metadata">

**Author:** ![Uroc327](https://avatars.discourse-cdn.com/v4/letter/u/eb8c5e/32.png) [@Uroc327](https://discourse.julialang.org/u/Uroc327)\
**Post date:** [February 19, 2021, 4:40pm UTC](https://discourse.julialang.org/t/how-to-create-to-separate-simultaneously-coexisting-plot-windows/55626/3 "2021-02-19T16:40:53Z")

</div>

I see, thank you. Is it possible to get two windows using GLMakie and WGLMakie? Or could I combine GLMakie with CairoMakie somehow, as long as I have no more than one interactive plot?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [February 19, 2021, 5:24pm UTC](https://discourse.julialang.org/t/how-to-create-to-separate-simultaneously-coexisting-plot-windows/55626/4 "2021-02-19T17:24:30Z")

</div>

I guess in theory you can show a scene with GLMakie, keep it open, then call `CairoMakie.activate!()` and continue creating CairoMakie figures. I’ve never tried this, though.

---

<div class="post-metadata">

**Author:** ![danieleavitabile](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/danieleavitabile/32/31966_2.png) [@danieleavitabile](https://discourse.julialang.org/u/danieleavitabile)\
**Post date:** [August 6, 2023, 9:04am UTC](https://discourse.julialang.org/t/how-to-create-to-separate-simultaneously-coexisting-plot-windows/55626/5 "2023-08-06T09:04:34Z")

</div>

Hi @Uroc327, @ffreyer, and @jules

is the answer to this post still valid? I am trying to get multiple separate plot windows with Makie and still can visualise only one at a time

---

<div class="post-metadata">

**Author:** ![ffreyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ffreyer/32/21569_2.png) [@ffreyer](https://discourse.julialang.org/u/ffreyer)\
**Post date:** [August 6, 2023, 11:53am UTC](https://discourse.julialang.org/t/how-to-create-to-separate-simultaneously-coexisting-plot-windows/55626/6 "2023-08-06T11:53:07Z")

</div>

No, you can have multiple windows in GLMakie with `display(GLMakie.Screen(), fig_or_scene)` now

---

<div class="post-metadata">

**Author:** ![danieleavitabile](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/danieleavitabile/32/31966_2.png) [@danieleavitabile](https://discourse.julialang.org/u/danieleavitabile)\
**Post date:** [August 7, 2023, 3:20pm UTC](https://discourse.julialang.org/t/how-to-create-to-separate-simultaneously-coexisting-plot-windows/55626/7 "2023-08-07T15:20:59Z")

</div>

Thanks
