# Plots small trouble

**URL:** <https://discourse.julialang.org/t/plots-small-trouble/41843>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [June 22, 2020, 7:03am UTC](https://discourse.julialang.org/t/plots-small-trouble/41843 "2020-06-22T07:03:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mitsuruk](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mitsuruk/32/15907_2.png) [@mitsuruk](https://discourse.julialang.org/u/mitsuruk)\
**Post date:** [June 22, 2020, 7:03am UTC](https://discourse.julialang.org/t/plots-small-trouble/41843/1 "2020-06-22T07:03:29Z")

</div>

Hi, I am learning Julialang on Mac and Windwos.  
I have a small trouble in Plots.jl

using Plots, Random  
plot(rand(50))

Yes, I can get target graph perfect.

however,

using Plots, Random  
plot(rand(50))  
println(“test”) # **add this line. This line is trouble.**

I can not get graph and any warnig on the screen. Just only “test” string.  
Does anyone know the reason why I can not get the graph or warning ?

My environment is latest ATOM,Juno Julia 1.4.2 on Mac and Windwos,

I look forward to your kind advice.

---

<div class="post-metadata">

**Author:** ![tomaklutfu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomaklutfu/32/2411_2.png) [@tomaklutfu](https://discourse.julialang.org/u/tomaklutfu)\
**Post date:** [June 22, 2020, 7:19am UTC](https://discourse.julialang.org/t/plots-small-trouble/41843/2 "2020-06-22T07:19:31Z")

</div>

It is because only the result of the last line is displayed. You can use `display(plot(....))` to show graph.

---

<div class="post-metadata">

**Author:** ![mitsuruk](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mitsuruk/32/15907_2.png) [@mitsuruk](https://discourse.julialang.org/u/mitsuruk)\
**Post date:** [June 22, 2020, 7:26am UTC](https://discourse.julialang.org/t/plots-small-trouble/41843/3 "2020-06-22T07:26:12Z")

</div>

Dear tomaklutfu,

> > display(plot(rand(50)))

I never forget your message!!  
Thank you very much for your advice.
