remove show; fix plotlyjs _series_updated, closes #505

This commit is contained in:
Thomas Breloff 2016-09-27 13:05:28 -04:00
parent 54923c082c
commit 980a92c625
2 changed files with 6 additions and 5 deletions

View File

@ -226,14 +226,10 @@ end
function reset_extrema!(sp::Subplot)
# axis = sp[Symbol(asym,:axis)]
# axis[:extrema] = Extrema()
for asym in (:x,:y,:z)
sp[Symbol(asym,:axis)][:extrema] = Extrema()
end
for series in sp.series_list
@show series
# expand_extrema!(axis, series[asym])
expand_extrema!(sp, series.d)
end
end

View File

@ -56,10 +56,15 @@ end
function _series_updated(plt::Plot{PlotlyJSBackend}, series::Series)
xsym, ysym = (ispolar(series) ? (:t,:r) : (:x,:y))
kw = KW(xsym => (series.d[:x],), ysym => (series.d[:y],))
z = series[:z]
if z != nothing
kw[:z] = (transpose_z(series, series[:z].surf, false),)
end
PlotlyJS.restyle!(
plt.o,
findfirst(plt.series_list, series),
KW(xsym => (series.d[:x],), ysym => (series.d[:y],))
kw
)
end