Skip to content

Commit eea751a

Browse files
committed
#278 seems to be fixed with PyCall master (closes #278)
1 parent 26aeac1 commit eea751a

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/init.jl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,8 @@ function find_backend(matplotlib::PyObject)
7474
qt2gui = Dict("pyqt5"=>:qt_pyqt5, "pyqt4"=>:qt_pyqt4, "pyside"=>:qt_pyside)
7575

7676
rcParams = PyDict(matplotlib["rcParams"])
77-
default = lowercase(get(ENV, "MPLBACKEND", "none"))
78-
if default == "none"
79-
default = lowercase(get(rcParams, "backend", "none"))
80-
if is_windows() && startswith(default, "qt")
81-
default = "tkagg" # workaround issue #278
82-
end
83-
end
77+
default = lowercase(get(ENV, "MPLBACKEND",
78+
get(rcParams, "backend", "none")))
8479
if haskey(matplotlib2gui,default)
8580
defaultgui = matplotlib2gui[default]
8681

0 commit comments

Comments
 (0)