We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8eeecf4 commit f9c9ca7Copy full SHA for f9c9ca7
src/init.jl
@@ -70,6 +70,14 @@ function find_backend(matplotlib::PyObject)
70
71
qt2gui = Dict("pyqt5"=>:qt_pyqt5, "pyqt4"=>:qt_pyqt4, "pyside"=>:qt_pyside)
72
73
+ if haskey(matplotlib, :pyplot)
74
+ # If matplotlib.pyplot exists, it means that matplotlib
75
+ # backend is already configured. It may mean that PyPlot.jl
76
+ # is called via PyJulia.
77
+ backend = lowercase(matplotlib[:get_backend]())
78
+ return (backend, get(matplotlib2gui, backend, :none))
79
+ end
80
+
81
rcParams = PyDict(matplotlib["rcParams"])
82
default = lowercase(get(ENV, "MPLBACKEND",
83
getnone(rcParams, "backend", "none")))
0 commit comments