JuliaPy / PyPlot.jl

Plotting for Julia based on matplotlib.pyplot
https://github.com/JuliaPy/PyPlot.jl
MIT License
475 stars 87 forks source link

PyPlot Slows to halt : conflict with control flow ? #503

Closed houchmandzadeh closed 3 years ago

houchmandzadeh commented 3 years ago

After a system crash, I installed Ubuntu 20.04.1 and installed julia 1.4.1 from Ubuntu repository. PyPlot has now a strange behavior. Plotting works perfectly and repeatedly. But if I try a loop, then pyplot stops nearly completely. Even if the plotting is not inside the loop, for example

clf() for i=1:50 print(2*i,"\n") end

takes suddenly more than a minute the first time, and then nearly halts the second time. Even if the second time, no loop is involved and the instruction is simply plot(x,y)

The issue is not related to jupyter notebook and is reproduced in REPL.

houchmandzadeh commented 3 years ago

Apparently, the problem was the backend. Installing qt5 and setting pygui(:qt5)

Solved the problem.

stevengj commented 3 years ago

What backend was it using before?