# Plots with Julia-0.6

**URL:** https://discourse.julialang.org/t/plots-with-julia-0-6/4798
**Category:** General Usage
**Tags:** plotting
**Created:** [July 12, 2017, 9:09am UTC](https://discourse.julialang.org/t/plots-with-julia-0-6/4798 "2017-07-12T09:09:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ptoche](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ptoche/32/23554_2.png) [@ptoche](https://discourse.julialang.org/u/ptoche)
#### Post date: [July 12, 2017, 9:09am UTC](https://discourse.julialang.org/t/plots-with-julia-0-6/4798/1 "2017-07-12T09:09:22Z")

</div>

I simultaneously upgraded to MacOS Sierra (the latest) and Julia 0.6, on a clean install. I’m trying to get my atom-juno-julia system to run as before, but am encountering problems plotting.

Let’s say, I run Chris’s code here: [Julia live plot with atom - Stack Overflow](https://stackoverflow.com/questions/38461163/julia-live-plot-with-atom)

in a new `atom-juno` session in the console:

```
using Plots
gr(reuse=true)
p =plot([0;.1],[0;.2])
gui()
for i=2:10
  push!(p,i*.1,randn())
  gui()
  sleep(.1) # To slow things down for show.
end

```

gives me a crash, e.g.

```
2017-07-12 17:05:49.273 julia[5502:19517] Launching GKSTerm failed.

```

I’ve tried various backends, with examples from `Plots.jl` and nothing works. Sometimes I just get nothing, sometimes I get that `Julia has stopped`.

I have installed `x-code` and run `Pkg.update()`.

Any suggestions? Thanks!

---

<div class="post-metadata">

### Author: ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)
#### Post date: [July 12, 2017, 9:40am UTC](https://discourse.julialang.org/t/plots-with-julia-0-6/4798/2 "2017-07-12T09:40:28Z")

</div>

Have you tried:

- using one of the backends direktly? `using PyPlot; plot(1:3)`
- master: `Pkg.checkout("Plots")`

---

<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: [July 12, 2017, 10:59am UTC](https://discourse.julialang.org/t/plots-with-julia-0-6/4798/3 "2017-07-12T10:59:08Z")

</div>

If you’re okay with using the build-in plot pane, then something like

```julia
using Plots
gr()
p = plot([0;.1],[0;.2])
for i=2:10
  push!(p,i*.1,randn())
  display(p)
  sleep(.1) # To slow things down for show.
end

```

works fine for me.

---

<div class="post-metadata">

### Author: ![ptoche](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ptoche/32/23554_2.png) [@ptoche](https://discourse.julialang.org/u/ptoche)
#### Post date: [July 12, 2017, 5:18pm UTC](https://discourse.julialang.org/t/plots-with-julia-0-6/4798/4 "2017-07-12T17:18:18Z")

</div>

Thanks Mauro, thanks Seb,

I managed to fix the `GR` backend with the following:

```
sudo rm -rf /usr/local/gr
ENV["GRDIR"]=""
Pkg.build("GR")

```

as suggested here:  
[https://github.com/jheinen/GR.jl/issues/46](https://github.com/jheinen/GR.jl/issues/46)

I’m not sure what happened, but I also had to run

```
Pkg.build("PyPlot")

```

And both `GR` and `PyPlot` are working now. Thanks!
