some bug fixes
This commit is contained in:
parent
1b5240a513
commit
fc7b6dd0c6
@ -651,10 +651,10 @@ function has_attribute_segments(series::Series)
|
|||||||
for letter in (:x, :y, :z)
|
for letter in (:x, :y, :z)
|
||||||
# If we have NaNs in the data they define the segments and
|
# If we have NaNs in the data they define the segments and
|
||||||
# SegmentsIterator is used
|
# SegmentsIterator is used
|
||||||
NaN in series[letter] && return false
|
series[letter] != nothing && NaN in series[letter] && return false
|
||||||
end
|
end
|
||||||
# ... else we check relevant attributes if they have multiple inputs
|
# ... 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
|
end
|
||||||
|
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user