# Plots.jl crashed when run plot()

**URL:** <https://discourse.julialang.org/t/plots-jl-crashed-when-run-plot/7114>\
**Category:** New to Julia\
**Tags:** package, plotting\
**Created:** [November 17, 2017, 5:01am UTC](https://discourse.julialang.org/t/plots-jl-crashed-when-run-plot/7114 "2017-11-17T05:01:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhangliye](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhangliye/32/3208_2.png) [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Post date:** [November 17, 2017, 5:01am UTC](https://discourse.julialang.org/t/plots-jl-crashed-when-run-plot/7114/1 "2017-11-17T05:01:42Z")

</div>

There is an error in Pkg.build(“Plots”). I solved this according to the suggestion from @mkborregaard by downloading [https://cdn.plot.ly/plotly-latest.min.js2](https://cdn.plot.ly/plotly-latest.min.js2) on my web browser.

But when I run plot(), Julia crashed with the following message. When I installed GR.jl and change the background to gr, the error does not exist. Thus, this crash error only for PyPlot background.  
(Plots.jl, Julia0.61 Windows 7, 64 Bit, Plots.jl v0.13.1)

 ![a](https://global.discourse-cdn.com/julialang/original/3X/f/b/fbb8ceb0600bbd50d75185d0c5874c67fdac55eb.jpeg)

However, the same code run correctly in Jupyter.

 ![b](https://global.discourse-cdn.com/julialang/original/3X/a/0/a0b973d962756c7b0f1e6ee7c135eb6d4afd591e.png)

---

<div class="post-metadata">

**Author:** ![IljaK91](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iljak91/32/44301_2.png) [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Post date:** [November 17, 2017, 9:05am UTC](https://discourse.julialang.org/t/plots-jl-crashed-when-run-plot/7114/2 "2017-11-17T09:05:19Z")

</div>

There seems to be a problem with PyPlot still, try `ENV["MPLBACKEND"]="qt4agg"` before `using Plots`.

---

<div class="post-metadata">

**Author:** ![krcools](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/krcools/32/10212_2.png) [@krcools](https://discourse.julialang.org/u/krcools)\
**Post date:** [November 17, 2017, 10:01am UTC](https://discourse.julialang.org/t/plots-jl-crashed-when-run-plot/7114/3 "2017-11-17T10:01:19Z")

</div>

I had this issue. Reinstalling conda from scratch fixed it for me.

---

<div class="post-metadata">

**Author:** ![zhangliye](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhangliye/32/3208_2.png) [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Post date:** [November 18, 2017, 4:54am UTC](https://discourse.julialang.org/t/plots-jl-crashed-when-run-plot/7114/4 "2017-11-18T04:54:08Z")

</div>

Thanks for your reply.

---

<div class="post-metadata">

**Author:** ![zhangliye](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhangliye/32/3208_2.png) [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Post date:** [November 18, 2017, 4:55am UTC](https://discourse.julialang.org/t/plots-jl-crashed-when-run-plot/7114/5 "2017-11-18T04:55:40Z")

</div>

When I run ENV[“MPLBACKEND”]=“qt4agg” before using Plots, Julia has not crashed. I should be caused by the default Backend of PyPlot. Thanks!
