actually use PlotsDisplay()
instead of overloading display for REPLDisplay
This commit is contained in:
parent
5c21261aea
commit
ac73798b9d
@ -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
|
||||||
|
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user