From 1fa34574e8dbef99a256edc063893924f532ef3c Mon Sep 17 00:00:00 2001 From: MA Laforge Date: Mon, 9 Jan 2017 15:14:39 -0500 Subject: [PATCH] More fixes requested by Tom: Add add_backend_string(). Remove un-necessary test: true == plt[:show]. --- src/backends/inspectdr.jl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/backends/inspectdr.jl b/src/backends/inspectdr.jl index 76e82168..fea44064 100644 --- a/src/backends/inspectdr.jl +++ b/src/backends/inspectdr.jl @@ -140,6 +140,14 @@ end # --------------------------------------------------------------------------- +function add_backend_string(::InspectDRBackend) + """ + if !Plots.is_installed("InspectDR") + Pkg.add("InspectDR") + end + """ +end + function _initialize_backend(::InspectDRBackend; kw...) @eval begin import InspectDR @@ -469,7 +477,7 @@ function _display(plt::Plot{InspectDRBackend}) if nothing == mplot; return; end gplot = _inspectdr_getgui(plt.o) - if nothing == gplot && true == plt[:show] + if nothing == gplot gplot = display(InspectDR.GtkDisplay(), mplot) else #redundant... Plots.jl will call _update_plot_object: