actually use PlotsDisplay()

instead of overloading display for REPLDisplay
This commit is contained in:
Sebastian Pfitzner 2018-08-16 11:59:56 +02:00
parent 5c21261aea
commit ac73798b9d
2 changed files with 1 additions and 5 deletions

View File

@ -304,6 +304,7 @@ const CURRENT_BACKEND = CurrentBackend(:none)
k == :theme || default(k, v) k == :theme || default(k, v)
end end
end end
pushdisplay(PlotsDisplay())
end end
# --------------------------------------------------------- # ---------------------------------------------------------

View File

@ -145,11 +145,6 @@ function Base.display(::PlotsDisplay, plt::Plot)
_display(plt) _display(plt)
end 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) _do_plot_show(plt, showval::Bool) = showval && gui(plt)
function _do_plot_show(plt, showval::Symbol) function _do_plot_show(plt, showval::Symbol)
showval == :gui && gui(plt) showval == :gui && gui(plt)