fix empty segments in plotly (#4177)
* fix empty segment case * fix failure on 1.6
This commit is contained in:
parent
4b73b8b5d5
commit
4f9a708f66
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user