# Updating the same plot window with multiple panes in a loop

**URL:** https://discourse.julialang.org/t/updating-the-same-plot-window-with-multiple-panes-in-a-loop/107690
**Category:** General Usage
**Tags:** plotting
**Created:** [December 15, 2023, 11:20pm UTC](https://discourse.julialang.org/t/updating-the-same-plot-window-with-multiple-panes-in-a-loop/107690 "2023-12-15T23:20:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![eveningsilverfox](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eveningsilverfox/32/51932_2.png) [@eveningsilverfox](https://discourse.julialang.org/u/eveningsilverfox)
#### Post date: [December 15, 2023, 11:20pm UTC](https://discourse.julialang.org/t/updating-the-same-plot-window-with-multiple-panes-in-a-loop/107690/1 "2023-12-15T23:20:31Z")

</div>

I am trying to update the same plot window in loop, with the window having multiple (in this case, two is sufficient) panes. But this code doesn’t update the window.  
How do I go about doing this?

EDIT: It is fine even if two separate windows can be created and updated separately.

```julia
using LinearAlgebra
using Plots

xx = range(1,10,10);
p0 = plot(title="A")
fg = 1        
while fg<100 
    println(fg)
    plot(plot([xx, xx], [0.1*fg*xx, 0.2*fg*xx]),
         plot(xx, 0.3*fg*xx), 
         layout = (1, 2), framestyle = :box, legend = false, show=true, reuse=true) 
    fg = fg + 1;
end

```
