circumvent warnings

This commit is contained in:
Sebastian Pfitzner 2017-07-15 11:40:11 +02:00
parent 9cf246a03e
commit bc7f6a6fac
2 changed files with 5 additions and 4 deletions

View File

@ -241,10 +241,8 @@ end
const CURRENT_BACKEND = CurrentBackend(:none) const CURRENT_BACKEND = CurrentBackend(:none)
function __init__() # for compatibility with Requires.jl:
# for compatibility with Requires.jl: @init begin
@init
if isdefined(Main, :PLOTS_DEFAULTS) if isdefined(Main, :PLOTS_DEFAULTS)
for (k,v) in Main.PLOTS_DEFAULTS for (k,v) in Main.PLOTS_DEFAULTS
default(k, v) default(k, v)

View File

@ -283,6 +283,9 @@ end
if Juno.isactive() if Juno.isactive()
Media.media(Plot, Media.Plot) Media.media(Plot, Media.Plot)
_show{B}(io::IO, m::MIME"text/plain", plt::Plot{B}) = show(io, m, plt)
function Juno.render(e::Juno.Editor, plt::Plot) function Juno.render(e::Juno.Editor, plt::Plot)
Juno.render(e, nothing) Juno.render(e, nothing)
end end