plotlyjs surf fix

This commit is contained in:
Tom Breloff 2016-11-14 16:45:01 -05:00
parent 4eb6fac881
commit c4a880c870

View File

@ -63,7 +63,7 @@ function _series_updated(plt::Plot{PlotlyJSBackend}, series::Series)
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),)
kw[:z] = (isa(z,Surface) ? transpose_z(series, series[:z].surf, false) : z,)
end
PlotlyJS.restyle!(
plt.o,