I made a PR (Add support for the GR backend #207 
<https://github.com/stevengj/PyPlot.jl/pull/207>) to enable GR support for 
the PyPlot library. It would be nice if the changes could be merged.

I don't know, why showing the plot should freeze everything else.

Changing the backend to GR did speed-up the following animation example by 
a factor > 3:

ENV["MPLBACKEND"] = "module://gr.matplotlib.backend_gr"

import PyPlot

x = collect(0:0.01:2*pi)
line, = PyPlot.plot(x, sin(x))

for i = 1:200
    line[:set_ydata](sin(x + i / 10.0))
    PyPlot.draw()
    PyPlot.pause(0.0001)
end


Thanks in advance,

Josef


On Wednesday, April 13, 2016 at 5:11:21 AM UTC+2, Steven G. Johnson wrote:
>
> The PyPlot library doesn't currently support the GR backend, mainly 
> because it doesn't know how to do event loops for this backend (which is 
> important for interactive plotting, so that showing the plot doesn't freeze 
> everything else). 
>
> As I understand it, GR can use Qt or wx for the UI?  In which case PyCall 
> does implement these event loops, and PyPlot just needs to be able to 
> figure out which event loop to start.
>

Reply via email to