some bug fixes

This commit is contained in:
Daniel Schwabeneder 2018-03-31 18:41:43 +02:00
parent 1b5240a513
commit fc7b6dd0c6

View File

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