# Juno doesn't produce plots

**URL:** <https://discourse.julialang.org/t/juno-doesnt-produce-plots/1220>\
**Category:** New to Julia\
**Created:** [December 30, 2016, 8:02pm UTC](https://discourse.julialang.org/t/juno-doesnt-produce-plots/1220 "2016-12-30T20:02:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chobbes](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@chobbes](https://discourse.julialang.org/u/chobbes)\
**Post date:** [December 30, 2016, 8:02pm UTC](https://discourse.julialang.org/t/juno-doesnt-produce-plots/1220/1 "2016-12-30T20:02:31Z")

</div>

I ran a Julia code in Juno by having the file opened and pressing the run button on the left and I expected to see a few figures in the plot window. However, no figures shows up at the plot window. The figures turn up only when I copy and paste the plotting block of the code in the console and enter. Is there anything that I am missing? Thanks!!

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [December 30, 2016, 8:39pm UTC](https://discourse.julialang.org/t/juno-doesnt-produce-plots/1220/2 "2016-12-30T20:39:48Z")

</div>

Thats the same as in any script you’d call via `julia foo.jl` – no output will be displayed unless you explicitly request it. `display()`ing your plot inside of the script should work though.

Also, for reference:  
[https://github.com/JunoLab/Atom.jl/pull/76](https://github.com/JunoLab/Atom.jl/pull/76)

---

<div class="post-metadata">

**Author:** ![chobbes](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@chobbes](https://discourse.julialang.org/u/chobbes)\
**Post date:** [December 30, 2016, 8:49pm UTC](https://discourse.julialang.org/t/juno-doesnt-produce-plots/1220/3 "2016-12-30T20:49:43Z")

</div>

> [@pfitzseb](#):
>
> Thats the same as in any script you’d call via `julia foo.jl` – no output will be displayed unless you explicitly request it. `display()`ing your plot inside of the script should work though.

Thanks for the answer. What is `julia foo.jl`?

Is the following the correct use of `display()`? I mean, by using the handle of figures.

```julia
h = plot(...)
display(h)

```

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [December 30, 2016, 9:25pm UTC](https://discourse.julialang.org/t/juno-doesnt-produce-plots/1220/4 "2016-12-30T21:25:24Z")

</div>

`julia foo.jl` is the command line invocation for executing the script `foo.jl`. Also, yes, your use of display is correct.

---

<div class="post-metadata">

**Author:** ![chobbes](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@chobbes](https://discourse.julialang.org/u/chobbes)\
**Post date:** [December 30, 2016, 9:37pm UTC](https://discourse.julialang.org/t/juno-doesnt-produce-plots/1220/5 "2016-12-30T21:37:37Z")

</div>

> [@pfitzseb](#):
>
> `julia foo.jl` is the command line invocation for executing the script `foo.jl`.

Oh, I see.

> [@pfitzseb](#):
>
> Also, yes, your use of display is correct.

Thanks for the confirmation!!
