From e30f4652afa159dc49a4720140b30c69387c8eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hamza=20Yusuf=20=C3=87ak=C4=B1r?= <32282514+hycakir@users.noreply.github.com> Date: Thu, 5 Apr 2018 02:53:50 +0300 Subject: [PATCH] Remove SVG support, which is not there plotly backend does not support SVG output. What it shows is the HTML output of Plotly backend. This commit makes the request for SVG output to return an error as in PNG. --- src/backends/plotly.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/plotly.jl b/src/backends/plotly.jl index 9d7126b0..8578b32e 100644 --- a/src/backends/plotly.jl +++ b/src/backends/plotly.jl @@ -908,7 +908,7 @@ function _show(io::IO, ::MIME"image/png", plt::Plot{PlotlyBackend}) end function _show(io::IO, ::MIME"image/svg+xml", plt::Plot{PlotlyBackend}) - write(io, html_head(plt) * html_body(plt)) + error("svg output from the plotly backend is not supported. Please use plotlyjs instead.") end function Base.show(io::IO, ::MIME"text/html", plt::Plot{PlotlyBackend})