From d44b7e89e73f6988324a10cf767ea896ccc1a916 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Sat, 6 Mar 2021 12:03:50 +0100 Subject: [PATCH] fix series-segments for empty series --- src/utils.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.jl b/src/utils.jl index a23a47b3..a85f9d90 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -77,7 +77,7 @@ end function series_segments(series::Series, seriestype::Symbol = :path) x, y, z = series[:x], series[:y], series[:z] - x === nothing && return UnitRange{Int}[] + (x === nothing || isempty(x)) && return UnitRange{Int}[] args = RecipesPipeline.is3d(series) ? (x, y, z) : (x, y) nan_segments = collect(iter_segments(args...))