# PyPlot plot window does not pop up in Atom

**URL:** <https://discourse.julialang.org/t/pyplot-plot-window-does-not-pop-up-in-atom/17435>\
**Category:** Juno\
**Created:** [November 12, 2018, 2:05pm UTC](https://discourse.julialang.org/t/pyplot-plot-window-does-not-pop-up-in-atom/17435 "2018-11-12T14:05:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sam/32/4101_2.png) [@Sam](https://discourse.julialang.org/u/Sam)\
**Post date:** [November 12, 2018, 2:05pm UTC](https://discourse.julialang.org/t/pyplot-plot-window-does-not-pop-up-in-atom/17435/1 "2018-11-12T14:05:42Z")

</div>

I am using Julia 1.0.0 and PyPlot for plotting. My problem is that when I run `PyPlot.plot()` from Atom the plot window does not pop up (this has worked before, but it doesn’t work currently). However, plotting figures using PyPlot works fine if I use the command line version of Julia or the Jupyter notebook. So I guess I have made some strange changes to Atom such that PyPlot doesn’t work. Any ideas on what the problem can be?

---

<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:** [November 12, 2018, 2:10pm UTC](https://discourse.julialang.org/t/pyplot-plot-window-does-not-pop-up-in-atom/17435/2 "2018-11-12T14:10:58Z")

</div>

Uncheck the `Enable Plot Pane` option in the julia-client settings in Atom:  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/0/108496f036fbe466ecfc1f423c27aa85e577f194.png)

You’ll probably have to restart Julia afterwards.

---

<div class="post-metadata">

**Author:** ![Sam](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sam/32/4101_2.png) [@Sam](https://discourse.julialang.org/u/Sam)\
**Post date:** [November 12, 2018, 2:14pm UTC](https://discourse.julialang.org/t/pyplot-plot-window-does-not-pop-up-in-atom/17435/3 "2018-11-12T14:14:34Z")

</div>

Thanks! The plot window pops up now 🙂

---

<div class="post-metadata">

**Author:** ![uwechsler](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/uwechsler/32/5223_2.png) [@uwechsler](https://discourse.julialang.org/u/uwechsler)\
**Post date:** [May 15, 2019, 12:57pm UTC](https://discourse.julialang.org/t/pyplot-plot-window-does-not-pop-up-in-atom/17435/4 "2019-05-15T12:57:51Z")

</div>

If you want to display your PyPlot plots in Atom with Juno (without changing the settings), you could also add

```julia
gcf()

```

at the end of your plotting code. As mentioned in [PyPlot cannot be used in Juno, stopped](https://discourse.julialang.org/t/pyplot-cannot-be-used-in-juno-stopped/18582) by @zhangliye.

Additionally, `clf()` is also useful to clear the plot.

---

<div class="post-metadata">

**Author:** ![RoyiAvital](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/royiavital/32/571_2.png) [@RoyiAvital](https://discourse.julialang.org/u/RoyiAvital)\
**Post date:** [April 23, 2020, 6:11pm UTC](https://discourse.julialang.org/t/pyplot-plot-window-does-not-pop-up-in-atom/17435/5 "2020-04-23T18:11:39Z")

</div>

One way to achieve the Window without disabling the _Plots Pane_ is by setting `pygui(true)`.

something like:

```julia
using PyPlot
pygui(true)
# use x = linspace(0,2*pi,1000) in Julia 0.6
x = range(0; stop=2*pi, length=1000); y = sin.(3 * x + 4 * cos.(2 * x));
plot(x, y, color="red", linewidth=2.0, linestyle="--")
title("A sinusoidally modulated sinusoid")

```

Will make the window pop up in Juno.
