sync -> webio

This commit is contained in:
cstjean 2018-03-20 09:53:53 -04:00
parent 07be09743b
commit 36f3121770

View File

@ -53,12 +53,12 @@ end
function _series_added(plt::Plot{PlotlyWebIOBackend}, series::Series) function _series_added(plt::Plot{PlotlyWebIOBackend}, series::Series)
syncplot = plt.o webioplot = plt.o
pdicts = plotly_series(plt, series) pdicts = plotly_series(plt, series)
for pdict in pdicts for pdict in pdicts
typ = pop!(pdict, :type) typ = pop!(pdict, :type)
gt = PlotlyWebIO.GenericTrace(typ; pdict...) gt = PlotlyWebIO.GenericTrace(typ; pdict...)
#PlotlyWebIO.addtraces!(syncplot, gt) PlotlyWebIO.addtraces!(webioplot, gt)
end end
end end
@ -81,9 +81,9 @@ end
function _update_plot_object(plt::Plot{PlotlyWebIOBackend}) function _update_plot_object(plt::Plot{PlotlyWebIOBackend})
pdict = plotly_layout(plt) pdict = plotly_layout(plt)
syncplot = plt.o webioplot = plt.o
w,h = plt[:size] w,h = plt[:size]
PlotlyWebIO.relayout!(syncplot, pdict, width = w, height = h) PlotlyWebIO.relayout!(webioplot, pdict, width = w, height = h)
end end