# Extra plots showing in Plots.jl with Interact

**URL:** <https://discourse.julialang.org/t/extra-plots-showing-in-plots-jl-with-interact/22573>\
**Category:** New to Julia\
**Created:** [March 31, 2019, 11:10pm UTC](https://discourse.julialang.org/t/extra-plots-showing-in-plots-jl-with-interact/22573 "2019-03-31T23:10:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rand5](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rand5/32/867_2.png) [@rand5](https://discourse.julialang.org/u/rand5)\
**Post date:** [March 31, 2019, 11:10pm UTC](https://discourse.julialang.org/t/extra-plots-showing-in-plots-jl-with-interact/22573/1 "2019-03-31T23:10:42Z")

</div>

```julia
using Plots
using Interact
pyplot()

N = Interact.slider(1:1:1000,label="N",value=1) |> onchange

PL = Observable(plot())
on(N) do n
    PL[] = plot(rand(n))
end
display(N)
display(PL)

```

Displays two plots. The first is the intended one that changes with the slider, and the second is a blank plot. Does anyone have thoughts on how to fix this?

Thanks in advance
