fix empty segments in plotly (#4177)

* fix empty segment case

* fix failure on 1.6
This commit is contained in:
Simon Christ 2022-04-08 16:39:37 +02:00 committed by GitHub
parent 4b73b8b5d5
commit 4f9a708f66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]