From 83f5febc3260bc749550182b4afe27f96da96f17 Mon Sep 17 00:00:00 2001 From: Adrian Dawid Date: Thu, 13 Aug 2020 23:04:23 +0200 Subject: [PATCH] Make color work --- src/backends/plotly.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/plotly.jl b/src/backends/plotly.jl index 1aff3a6d..68af23f8 100644 --- a/src/backends/plotly.jl +++ b/src/backends/plotly.jl @@ -588,13 +588,13 @@ function plotly_series(plt::Plot, series::Series) throw(ArgumentError("Argument connections has to be a tuple of three arrays.")) end end - plotattributes_out[:colorscale] = plotly_colorscale(series[:fillcolor], series[:fillalpha]) + plotattributes_out[:color] = rgba_string(plot_color(series[:fillcolor], series[:fillalpha])) plotattributes_out[:opacity] = series[:fillalpha] if series[:fill_z] !== nothing plotattributes_out[:surfacecolor] = plotly_surface_data(series, series[:fill_z]) end - plotattributes_out[:showscale] = false + plotattributes_out[:showscale] = hascolorbar(sp) else @warn("Plotly: seriestype $st isn't supported.") return KW()