From a0c77812962e2b4e66f0597f45b50e39e58553eb Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Thu, 30 Apr 2020 13:16:33 +0200 Subject: [PATCH] make segments for vectors of markersize and markerstrokewidth --- src/utils.jl | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/utils.jl b/src/utils.jl index 650f730b..280c6387 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -587,7 +587,28 @@ function has_attribute_segments(series::Series) end series[:seriestype] == :shape && return false # ... 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, :linestyle, :fillcolor, :fillalpha, :markercolor, :markeralpha, :markerstrokecolor, :markerstrokealpha]) || any(typeof(series[attr]) <: AbstractArray for attr in (:line_z, :fill_z, :marker_z)) + return any( + (typeof(series[attr]) <: AbstractVector && length(series[attr]) > 1) + for + attr in [ + :seriescolor, + :seriesalpha, + :linecolor, + :linealpha, + :linewidth, + :linestyle, + :fillcolor, + :fillalpha, + :markercolor, + :markeralpha, + :markersize, + :markerstrokecolor, + :markerstrokealpha, + :markerstrokewidth, + ] + ) || any( + typeof(series[attr]) <: AbstractArray for attr in (:line_z, :fill_z, :marker_z) + ) end function get_aspect_ratio(sp)