From 594a6b17ab5bd0ee2af11bc3f5e02b0808bc8776 Mon Sep 17 00:00:00 2001 From: "Julien Jerphanion (@jjerphan)" Date: Tue, 24 Sep 2019 09:18:58 +0200 Subject: [PATCH 1/2] Update MIME type for show --- src/Gadfly.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gadfly.jl b/src/Gadfly.jl index b517bc2af..aea052dae 100755 --- a/src/Gadfly.jl +++ b/src/Gadfly.jl @@ -956,7 +956,7 @@ function show(io::IO, m::MIME"image/svg+xml", p::Plot) show(io, m, svg) end -function show(io::IO, m::MIME"application/juno+plotpane", p::Plot) +function show(io::IO, m::MIME"application/prs.juno.plotpane+html", p::Plot) buf = IOBuffer() svg = SVGJS(buf, Compose.default_graphic_width, Compose.default_graphic_height, false) From 8132ee4ac07d7f25cffae99e5a2f55d82798cb36 Mon Sep 17 00:00:00 2001 From: "Julien Jerphanion (@jjerphan)" Date: Sun, 20 Oct 2019 21:45:15 +0200 Subject: [PATCH 2/2] Update with union or both previous and new MIME type --- src/Gadfly.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Gadfly.jl b/src/Gadfly.jl index aea052dae..c97c633c4 100755 --- a/src/Gadfly.jl +++ b/src/Gadfly.jl @@ -956,7 +956,8 @@ function show(io::IO, m::MIME"image/svg+xml", p::Plot) show(io, m, svg) end -function show(io::IO, m::MIME"application/prs.juno.plotpane+html", p::Plot) +function show(io::IO,m::Union{MIME"application/juno+plotpane", + MIME"application/prs.juno.plotpane+html"}, p::Plot) buf = IOBuffer() svg = SVGJS(buf, Compose.default_graphic_width, Compose.default_graphic_height, false)