Julia throws an Runtime Error when trying to use PyPlot

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

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

grafik
grafik

1 Like

See 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.)

1 Like