diff --git a/src/axes.jl b/src/axes.jl index 4a797561..142ccedb 100644 --- a/src/axes.jl +++ b/src/axes.jl @@ -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 diff --git a/src/backends/plotlyjs.jl b/src/backends/plotlyjs.jl index cebd6488..e35f7bd5 100644 --- a/src/backends/plotlyjs.jl +++ b/src/backends/plotlyjs.jl @@ -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