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)
function __init__()
# for compatibility with Requires.jl:
@init
# for compatibility with Requires.jl:
@init begin
if isdefined(Main, :PLOTS_DEFAULTS)
for (k,v) in Main.PLOTS_DEFAULTS
default(k, v)

View File

@ -283,6 +283,9 @@ end
if Juno.isactive()
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)
Juno.render(e, nothing)
end