Skip to content

Commit

Permalink
support MPLBACKEND from matplotlib/matplotlib#3710 (closes #135)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Jul 27, 2015
1 parent dcad8b5 commit 70ea59b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PyPlot.jl
Expand Up @@ -141,7 +141,8 @@ function find_backend(matplotlib::PyObject)
qt2gui = @compat Dict("pyqt4"=>:qt_pyqt4, "pyside"=>:qt_pyside)

rcParams = PyDict(matplotlib["rcParams"])
default = lowercase(get(rcParams, "backend", "none"))
default = lowercase(get(ENV, "MPLBACKEND",
get(rcParams, "backend", "none")))
if haskey(matplotlib2gui,default)
insert!(options, 1, (matplotlib2gui[default],default))
end
Expand Down

0 comments on commit 70ea59b

Please sign in to comment.