diff --git a/src/output.jl b/src/output.jl index c6d67b0d..0a6c49f7 100644 --- a/src/output.jl +++ b/src/output.jl @@ -202,6 +202,8 @@ for mime in ("text/plain", "text/html", "image/png", "image/eps", "image/svg+xml end end +Base.show(io::IO, m::MIME"application/prs.juno.plotpane+html", plt::Plot) = showjuno(io, MIME("text/html"), plt) + # default text/plain for all backends _show(io::IO, ::MIME{Symbol("text/plain")}, plt::Plot) = show(io, plt) @@ -230,7 +232,7 @@ closeall() = closeall(backend()) # Atom PlotPane # --------------------------------------------------------- function showjuno(io::IO, m, plt) - sz = plt[:size] + sz = collect(plt[:size]) dpi = plt[:dpi] thickness_scaling = plt[:thickness_scaling] @@ -259,4 +261,6 @@ function _showjuno(io::IO, m::MIME"image/svg+xml", plt) end end +Base.showable(::MIME"application/prs.juno.plotpane+html", plt::Plot) = showable(MIME"text/html"(), plt) + _showjuno(io::IO, m, plt) = _show(io, m, plt)