Merge pull request #1214 from apalugniok/plotly-colorbar
Fix colorbar always displaying in Plotly. (Fixes #1211)
This commit is contained in:
commit
1f12185441
@ -526,7 +526,7 @@ function plotly_series(plt::Plot, series::Series)
|
|||||||
d_out[:type] = "heatmap"
|
d_out[:type] = "heatmap"
|
||||||
# d_out[:x], d_out[:y], d_out[:z] = series[:x], series[:y], transpose_z(series, series[:z].surf, false)
|
# d_out[:x], d_out[:y], d_out[:z] = series[:x], series[:y], transpose_z(series, series[:z].surf, false)
|
||||||
d_out[:colorscale] = plotly_colorscale(series[:fillcolor], series[:fillalpha])
|
d_out[:colorscale] = plotly_colorscale(series[:fillcolor], series[:fillalpha])
|
||||||
d_out[:showscale] = sp[:legend] != :none
|
d_out[:showscale] = hascolorbar(sp)
|
||||||
|
|
||||||
elseif st == :contour
|
elseif st == :contour
|
||||||
d_out[:type] = "contour"
|
d_out[:type] = "contour"
|
||||||
@ -535,7 +535,7 @@ function plotly_series(plt::Plot, series::Series)
|
|||||||
d_out[:ncontours] = series[:levels]
|
d_out[:ncontours] = series[:levels]
|
||||||
d_out[:contours] = KW(:coloring => series[:fillrange] != nothing ? "fill" : "lines")
|
d_out[:contours] = KW(:coloring => series[:fillrange] != nothing ? "fill" : "lines")
|
||||||
d_out[:colorscale] = plotly_colorscale(series[:linecolor], series[:linealpha])
|
d_out[:colorscale] = plotly_colorscale(series[:linecolor], series[:linealpha])
|
||||||
d_out[:showscale] = sp[:legend] != :none
|
d_out[:showscale] = hascolorbar(sp)
|
||||||
|
|
||||||
elseif st in (:surface, :wireframe)
|
elseif st in (:surface, :wireframe)
|
||||||
d_out[:type] = "surface"
|
d_out[:type] = "surface"
|
||||||
@ -555,7 +555,7 @@ function plotly_series(plt::Plot, series::Series)
|
|||||||
if series[:fill_z] != nothing
|
if series[:fill_z] != nothing
|
||||||
d_out[:surfacecolor] = plotly_surface_data(series, series[:fill_z])
|
d_out[:surfacecolor] = plotly_surface_data(series, series[:fill_z])
|
||||||
end
|
end
|
||||||
d_out[:showscale] = sp[:legend] != :none
|
d_out[:showscale] = hascolorbar(sp)
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif st == :pie
|
elseif st == :pie
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user