JuliaPy / PyPlot.jl

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

Closing the first figure disables the following figures #326

Open antoine-levitt opened 7 years ago

antoine-levitt commented 7 years ago

Symptoms look related to https://github.com/JuliaPy/PyPlot.jl/issues/179, but I'm on linux; a friend has the exact same bug. Backend is TkAgg. Possibly related: only the first figure has a task bar icon.

When I do figure(); plot(1); figure(); plot(1) and I close the first figure (through the GUI or close(1)), the second figure becomes unresponsive. I am able to close() it and everything works fine again, though. Works fine through python.

stevengj commented 7 years ago

I can reproduce the problem on my Mac. Works in Python.

I'm guessing the problem lies with PyCall's Tk event loop somehow.

antoine-levitt commented 5 years ago

Possibly fixed by https://github.com/matplotlib/matplotlib/pull/12707? (I can't check easily)