Merge pull request #1577 from JuliaPlots/pv/webio

WebIO integration for PlotlyJS backend
This commit is contained in:
Daniel Schwabeneder 2018-07-01 08:44:40 +02:00 committed by GitHub
commit 7f4537bdc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,6 +120,12 @@ function _display(plt::Plot{PlotlyJSBackend})
end
end
@require WebIO begin
function WebIO.render(plt::Plot{PlotlyJSBackend})
prepare_output(plt)
WebIO.render(plt.o)
end
end
function closeall(::PlotlyJSBackend)
if !isplotnull() && isa(current().o, PlotlyJS.SyncPlot)