Change color handling of error recipes (#2675)
* fix iteration of segments * fix error vector arg detection * change color handling of recipes
This commit is contained in:
parent
6ddf31d465
commit
3d693d88e0
@ -71,8 +71,9 @@ const POTENTIAL_VECTOR_ARGUMENTS = [
|
|||||||
:marker_z,
|
:marker_z,
|
||||||
:markerstrokecolor,
|
:markerstrokecolor,
|
||||||
:markerstrokealpha,
|
:markerstrokealpha,
|
||||||
|
:xerror,
|
||||||
:yerror,
|
:yerror,
|
||||||
:yerror,
|
:zerror,
|
||||||
:series_annotations,
|
:series_annotations,
|
||||||
:fillrange,
|
:fillrange,
|
||||||
]
|
]
|
||||||
@ -1027,7 +1028,7 @@ end
|
|||||||
|
|
||||||
function error_style!(plotattributes::AKW)
|
function error_style!(plotattributes::AKW)
|
||||||
plotattributes[:seriestype] = :path
|
plotattributes[:seriestype] = :path
|
||||||
plotattributes[:linecolor] = plotattributes[:markerstrokecolor]
|
plotattributes[:markercolor] = plotattributes[:markerstrokecolor]
|
||||||
plotattributes[:linewidth] = plotattributes[:markerstrokewidth]
|
plotattributes[:linewidth] = plotattributes[:markerstrokewidth]
|
||||||
plotattributes[:label] = ""
|
plotattributes[:label] = ""
|
||||||
end
|
end
|
||||||
|
|||||||
@ -75,7 +75,11 @@ function iter_segments(series::Series)
|
|||||||
if series[:seriestype] in (:scatter, :scatter3d)
|
if series[:seriestype] in (:scatter, :scatter3d)
|
||||||
return [[i] for i in eachindex(y)]
|
return [[i] for i in eachindex(y)]
|
||||||
else
|
else
|
||||||
return [i:(i + 1) for i in firstindex(y):lastindex(y)-1]
|
if any(isnan,y)
|
||||||
|
return [iter_segments(y)...]
|
||||||
|
else
|
||||||
|
return [i:(i + 1) for i in firstindex(y):lastindex(y)-1]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
segs = UnitRange{Int}[]
|
segs = UnitRange{Int}[]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user