From ac73798b9d4801f08ef93e4f7fc9e92ad69db865 Mon Sep 17 00:00:00 2001 From: Sebastian Pfitzner Date: Thu, 16 Aug 2018 11:59:56 +0200 Subject: [PATCH] actually use PlotsDisplay() instead of overloading display for REPLDisplay --- src/Plots.jl | 1 + src/output.jl | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Plots.jl b/src/Plots.jl index 854b13bf..ac99a187 100644 --- a/src/Plots.jl +++ b/src/Plots.jl @@ -304,6 +304,7 @@ const CURRENT_BACKEND = CurrentBackend(:none) k == :theme || default(k, v) end end + pushdisplay(PlotsDisplay()) end # --------------------------------------------------------- diff --git a/src/output.jl b/src/output.jl index 7c762d6b..dbee501b 100644 --- a/src/output.jl +++ b/src/output.jl @@ -145,11 +145,6 @@ function Base.display(::PlotsDisplay, plt::Plot) _display(plt) end -# override the REPL display to open a gui window -using REPL -Base.display(::REPL.REPLDisplay, ::MIME"text/plain", plt::Plot) = gui(plt) - - _do_plot_show(plt, showval::Bool) = showval && gui(plt) function _do_plot_show(plt, showval::Symbol) showval == :gui && gui(plt)