# Plot pane doesn't show the first plot command

**URL:** <https://discourse.julialang.org/t/plot-pane-doesnt-show-the-first-plot-command/5940>\
**Category:** General Usage\
**Tags:** juno\
**Created:** [September 18, 2017, 4:22am UTC](https://discourse.julialang.org/t/plot-pane-doesnt-show-the-first-plot-command/5940 "2017-09-18T04:22:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yha/32/3502_2.png) [@yha](https://discourse.julialang.org/u/yha)\
**Post date:** [September 18, 2017, 4:22am UTC](https://discourse.julialang.org/t/plot-pane-doesnt-show-the-first-plot-command/5940/1 "2017-09-18T04:22:11Z")

</div>

When I run the following block of code with alt+Enter:

```julia
using Plots
pyplot() # or plotlyjs()

plot(cumsum(randn(1000)))

```

on a fresh Julia console (freshly opened Juno, or after killing the Julia process), nothing appears in the plot pane. Instead, a big block of text appears in the editor (see attached screenshot).  
If the lines above are executed one by one rather than as a block, it works fine. Subsequent plots are also fine. The same behavior occurs with both pyplot and plotlyjs backends.

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [September 18, 2017, 5:19am UTC](https://discourse.julialang.org/t/plot-pane-doesnt-show-the-first-plot-command/5940/2 "2017-09-18T05:19:55Z")

</div>

Yes, that’s a known issue, due to the “world age” error. This is because Plots uses some clever trickery to work together with Juno and the backend packages if you have them installed, but not require that you install them. That doesn’t play so nicely with how functions are updated within a julia session in julia 0.6.

It’s being worked on, but for now the easy workaround is simply to speed quickly past the first `plot` call.
