From c94cf1855df2d34cd4d80222dda86178626de208 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Fri, 26 Nov 2021 13:32:29 +0100 Subject: [PATCH] fix plotly --- 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 12b68e44..adf8adb7 100644 --- a/src/backends/plotly.jl +++ b/src/backends/plotly.jl @@ -754,7 +754,7 @@ function plotly_series(plt::Plot, series::Series) plotly_polar!(plotattributes_out, series) plotly_hover!(plotattributes_out, series[:hover]) - return plotattributes_out + return [plotattributes_out] end function plotly_series_shapes(plt::Plot, series::Series, clims) @@ -1030,7 +1030,7 @@ end # get a list of dictionaries, each representing the series params function plotly_series(plt::Plot) - [plotly_series(plt, series) for series in plt.series_list] + reduce(vcat, plotly_series(plt, series) for series in plt.series_list) end # get json string for a list of dictionaries, each representing the series params