From 4f9a708f66fc3990348e803a87cd5c150b8c2491 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Fri, 8 Apr 2022 16:39:37 +0200 Subject: [PATCH] fix empty segments in plotly (#4177) * fix empty segment case * fix failure on 1.6 --- 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..205e7dc1 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 1:length(segments)] # TODO: create a plotattributes_out for each polygon # x, y = series[:x], series[:y]