remove Base.show methods for plotly and plotlyjs

to unify all backend show to go through the same path
This commit is contained in:
Fredrik Ekre 2018-05-21 09:13:31 +02:00
parent 26d0338f09
commit 9f46e19084
2 changed files with 3 additions and 5 deletions

View File

@ -922,8 +922,7 @@ end
# ---------------------------------------------------------------- # ----------------------------------------------------------------
function Base.show(io::IO, ::MIME"text/html", plt::Plot{PlotlyBackend}) function _show(io::IO, ::MIME"text/html", plt::Plot{PlotlyBackend})
prepare_output(plt)
write(io, html_head(plt) * html_body(plt)) write(io, html_head(plt) * html_body(plt))
end end

View File

@ -88,8 +88,7 @@ end
# ---------------------------------------------------------------- # ----------------------------------------------------------------
function Base.show(io::IO, ::MIME"text/html", plt::Plot{PlotlyJSBackend}) function _show(io::IO, ::MIME"text/html", plt::Plot{PlotlyJSBackend})
prepare_output(plt)
if isijulia() && !_use_remote[] if isijulia() && !_use_remote[]
write(io, PlotlyJS.html_body(PlotlyJS.JupyterPlot(plt.o))) write(io, PlotlyJS.html_body(PlotlyJS.JupyterPlot(plt.o)))
else else