We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8eeecf4 commit 4cbc792Copy full SHA for 4cbc792
src/init.jl
@@ -48,6 +48,13 @@ end
48
49
# return (backend,gui) tuple
50
function find_backend(matplotlib::PyObject)
51
+ if haskey(matplotlib, :pyplot)
52
+ # If matplotlib.pyplot exists, it means that matplotlib
53
+ # backend is configured. It may mean that PyPlot.jl is called
54
+ # via PyJulia. Don't setup any GUI event loop in this case.
55
+ return (matplotlib[:get_backend](), :none)
56
+ end
57
+
58
gui2matplotlib = Dict(:wx=>"WXAgg",:gtk=>"GTKAgg",:gtk3=>"GTK3Agg",
59
:qt_pyqt4=>"Qt4Agg", :qt_pyqt5=>"Qt5Agg",
60
:qt_pyside=>"Qt4Agg", :qt4=>"Qt4Agg",
0 commit comments