make sure display order is correct if Plots is loaded before the REPL

This commit is contained in:
Sebastian Pfitzner 2018-08-16 12:34:33 +02:00
parent 6593e3cfe6
commit 00be8a2237

View File

@ -9,6 +9,13 @@ function __init__()
end
pushdisplay(PlotsDisplay())
atreplinit(i -> begin
if PlotDisplay() in Base.Multimedia.displays
popdisplay(PlotsDisplay())
end
pushdisplay(PlotsDisplay())
end)
include(joinpath(@__DIR__, "backends", "plotly.jl"))
include(joinpath(@__DIR__, "backends", "gr.jl"))
include(joinpath(@__DIR__, "backends", "web.jl"))