From fc7b6dd0c6231f2af1c93e1b85c2ee495b30ab5f Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Sat, 31 Mar 2018 18:41:43 +0200 Subject: [PATCH] some bug fixes --- src/utils.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.jl b/src/utils.jl index 7b615759..252f9aed 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -651,10 +651,10 @@ function has_attribute_segments(series::Series) for letter in (:x, :y, :z) # If we have NaNs in the data they define the segments and # SegmentsIterator is used - NaN in series[letter] && return false + series[letter] != nothing && NaN in series[letter] && return false end # ... else we check relevant attributes if they have multiple inputs - return any((typeof(series[attr]) <: AbstractVector && length(series[attr] > 1) for attr in [:seriescolor, :seriesalpha, :linecolor, :linealpha, :linewidth, :fillcolor, :fillalpha]) + return any((typeof(series[attr]) <: AbstractVector && length(series[attr]) > 1) for attr in [:seriescolor, :seriesalpha, :linecolor, :linealpha, :linewidth, :fillcolor, :fillalpha]) || any(typeof(series[attr]) <: AbstractArray{<:Real} for attr in (:line_z, :fill_z)) end # ---------------------------------------------------------------