-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No working GUI backend found for matplotlib #418
Comments
I installed XQuartz and logged out and logged back in, but still same warning. Should I Pkg.update() after installing XQuartz? |
I tried the following, but still same error. I don't understand the instructions to install python.app, etc... Sounds complicated. python
|
I looked at the instruction: https://matplotlib.org/faq/osx_framework.html |
If you need to configure Python executable to be used from PyPlot.jl etc., you need to do it via PyCall.jl. See: https://github.com/JuliaPy/PyCall.jl#specifying-the-python-version |
Can someone help me resolve this issue? |
Maybe you have a |
When I tried the following, I get "Warning: No working GUI backend found for matplotlib" using PyPlot |
PyPlot not working on Julia v1.1 (on Linux): p.s. on Linux Julia |
You need |
@KestutisMa, what are You could try using |
Thanks for reply, Steven. I tried but still no plot window, but now I don't get warning message.
|
I just figured out: I need to do |
ENV["MPLBACKEND"]="tkagg" The above lines in the Julia command window give: ERROR: No working GUI backend found for matplotlib. PyPlot.backend is "Agg" and PyPlot.PyCall.python is "/Users/a598124/.julia/v0.6/Conda/deps/usr/bin/python". |
This solved my problem. It seems that unlike the previous versions, calling The error I had
Could perhaps be amended to be more informative? Ideally, it should distinguish the case that pygui(true) hasn't been called and that when the backend of matplotlib is not correctly set. |
You only need If you run from a REPL, it defaults to interactive figures and there is no need to call |
Although this is old (but still "open"), I'm posting here because this was the top link when I googled my problem. I'm using macports' installed python, matplotlib, and pyqt5 on an M2 Mac. Despite having
It turns out that |
I am getting the above warning when I try to use PyPlot for plotting and no plots show up. I followed the instructions here (#219), but it still didn't fix the issue when I try to call the Julia script which tries to use PyPlot. In the Julia terminal, after following those instructions, the warning does not show up but I also cannot get the basic example to show up. I use Julia v0.6.4 on MacOS. PyPlot used to work for me several months ago, and just tried to use it again today. I've done at least one Pkg.update() since the last time PyPlot worked.
The text was updated successfully, but these errors were encountered: