make segments for vectors of markersize and markerstrokewidth
This commit is contained in:
parent
2ea998983d
commit
a0c7781296
23
src/utils.jl
23
src/utils.jl
@ -587,7 +587,28 @@ function has_attribute_segments(series::Series)
|
|||||||
end
|
end
|
||||||
series[:seriestype] == :shape && return false
|
series[:seriestype] == :shape && return false
|
||||||
# ... 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, :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
|
end
|
||||||
|
|
||||||
function get_aspect_ratio(sp)
|
function get_aspect_ratio(sp)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user