We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a62e9ff commit 71632ffCopy full SHA for 71632ff
1 file changed
src/PyPlot.jl
@@ -121,8 +121,13 @@ function find_backend(matplotlib::PyObject)
121
qt2gui = Dict("pyqt5"=>:qt_pyqt5, "pyqt4"=>:qt_pyqt4, "pyside"=>:qt_pyside)
122
123
rcParams = PyDict(matplotlib["rcParams"])
124
- default = lowercase(get(ENV, "MPLBACKEND",
125
- get(rcParams, "backend", "none")))
+ default = lowercase(get(ENV, "MPLBACKEND", "none"))
+ if default == "none"
126
+ default = lowercase(get(rcParams, "backend", "none"))
127
+ if is_windows() && default == "qt5agg"
128
+ default = "qt4agg" # workaround issue #278
129
+ end
130
131
if haskey(matplotlib2gui,default)
132
defaultgui = matplotlib2gui[default]
133
0 commit comments