From 3bd9e70fa91de1e27ea6a190ff3e7aaa41230259 Mon Sep 17 00:00:00 2001 From: Thomas Breloff Date: Mon, 16 Nov 2015 16:06:48 -0500 Subject: [PATCH] moved PyPlot to first priority --- src/plotter.jl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plotter.jl b/src/plotter.jl index 4bd28049..c0b4474e 100644 --- a/src/plotter.jl +++ b/src/plotter.jl @@ -88,6 +88,11 @@ CurrentBackend(sym::Symbol) = CurrentBackend(sym, backendInstance(sym)) # --------------------------------------------------------- function pickDefaultBackend() + try + if Pkg.installed("PyPlot") != nothing + return CurrentBackend(:pyplot) + end + end try if Pkg.installed("Immerse") != nothing return CurrentBackend(:immerse) @@ -98,11 +103,6 @@ function pickDefaultBackend() return CurrentBackend(:qwt) end end - try - if Pkg.installed("PyPlot") != nothing - return CurrentBackend(:pyplot) - end - end try if Pkg.installed("Gadfly") != nothing return CurrentBackend(:gadfly)