Merge pull request #1926 from H-M-H/plotly_fix

Fix #1961
This commit is contained in:
Michael Krabbe Borregaard 2019-02-23 10:08:06 +01:00 committed by GitHub
commit 84eead47e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -417,6 +417,8 @@ const _plotly_marker = [
] ]
const _plotly_scale = [:identity, :log10] const _plotly_scale = [:identity, :log10]
defaultOutputFormat(plt::Plot{Plots.PlotlyBackend}) = "html"
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# pgfplots # pgfplots

View File

@ -55,9 +55,7 @@ tex(fn::AbstractString) = tex(current(), fn)
function html(plt::Plot, fn::AbstractString) function html(plt::Plot, fn::AbstractString)
fn = addExtension(fn, "html") fn = addExtension(fn, "html")
io = open(fn, "w") io = open(fn, "w")
_use_remote[] = true
show(io, MIME("text/html"), plt) show(io, MIME("text/html"), plt)
_use_remote[] = false
close(io) close(io)
end end
html(fn::AbstractString) = html(current(), fn) html(fn::AbstractString) = html(current(), fn)