From 2c2bf5a3962b173bd7c89d6258d49271e6527c02 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Fri, 8 Apr 2022 15:05:07 +0200 Subject: [PATCH] fix empty segment case --- src/backends/plotly.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/backends/plotly.jl b/src/backends/plotly.jl index f3f1db44..66cb1aaa 100644 --- a/src/backends/plotly.jl +++ b/src/backends/plotly.jl @@ -753,13 +753,12 @@ function plotly_series(plt::Plot, series::Series) plotly_polar!(plotattributes_out, series) plotly_adjust_hover_label!(plotattributes_out, series[:hover]) - return [plotattributes_out] end function plotly_series_shapes(plt::Plot, series::Series, clims) segments = series_segments(series; check = true) - plotattributes_outs = Vector{KW}(undef, length(segments)) + plotattributes_outs = [KW() for _ in eachindex(segments)] # TODO: create a plotattributes_out for each polygon # x, y = series[:x], series[:y]