JuliaPy / PyPlot.jl

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

wxpython EventLoop -> GUIEventLoop #504

Open s-valent opened 3 years ago

s-valent commented 3 years ago

PyPlot doesn't work with wxpython on macOS. (I tried on julia 1.5.2 & latest julia from github).

output:

julia> using PyPlot

julia> plot([1, 2])
ERROR: sys:1: wxPyDeprecationWarning: Using deprecated class EventLoop. Use GUIEventLoop instead.

# here goes infinite loop

the same using Plots with pyplot():

julia> using Plots

julia> pyplot()
Plots.PyPlotBackend()

julia> plot([1, 2])
ERROR: sys:1: wxPyDeprecationWarning: Using deprecated class EventLoop. Use GUIEventLoop instead.

I assume the problem is rather with PyCall as EventLoop is called from there. Since I'm not very familiar with wxpython and just changing EventLoop to GUIEventLoop does not work, I had to open this issue here. Should I open it in PyCall?