# Julia throws an Runtime Error when trying to use PyPlot

**URL:** <https://discourse.julialang.org/t/julia-throws-an-runtime-error-when-trying-to-use-pyplot/6002>\
**Category:** General Usage\
**Created:** [September 20, 2017, 2:37pm UTC](https://discourse.julialang.org/t/julia-throws-an-runtime-error-when-trying-to-use-pyplot/6002 "2017-09-20T14:37:14Z")\
**Posts on this page:** 2\
**Page:** 1

<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:** [September 20, 2017, 2:37pm UTC](https://discourse.julialang.org/t/julia-throws-an-runtime-error-when-trying-to-use-pyplot/6002/1 "2017-09-20T14:37:14Z")

</div>

Does anyone know what this might be about? Restarting the computer did not help.

```julia
using PyPlot
x = [1 2 3 4 5]
y = [2 4 6 8 10]
plot(x,y)

```

![grafik](https://global.discourse-cdn.com/julialang/original/3X/6/9/6951f91a25d177ebd29e8f593cf21e1c815d11ce.png)  
 ![grafik](https://global.discourse-cdn.com/julialang/original/3X/6/0/60f9a78d5ee2cbfcf35a689e1233b85c1f8d7033.png)

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [September 21, 2017, 1:17am UTC](https://discourse.julialang.org/t/julia-throws-an-runtime-error-when-trying-to-use-pyplot/6002/2 "2017-09-21T01:17:53Z")

</div>

See [https://github.com/JuliaPy/PyPlot.jl/issues/278](https://github.com/JuliaPy/PyPlot.jl/issues/278) for information and workarounds for a similar issue. (May be an issue with your python distro; a workaround is to switch to another backend.)
