Merge pull request #1311 from apalugniok/ribbons

Fix ribbons slicing for several series. Fixes #1302
This commit is contained in:
Michael Krabbe Borregaard 2017-12-14 22:13:44 +01:00 committed by GitHub
commit 8b551e5285
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,6 +140,14 @@ struct SliceIt end
end end
mf = length(fillranges) mf = length(fillranges)
rib = pop!(plotattributes, :ribbon, nothing)
ribbons, _ = if typeof(rib) <: Number
([fr],nothing)
else
convertToAnyVector(rib, plotattributes)
end
mr = length(ribbons)
# @show zs # @show zs
mx = length(xs) mx = length(xs)
@ -156,6 +164,10 @@ struct SliceIt end
fr = fillranges[mod1(i,mf)] fr = fillranges[mod1(i,mf)]
di[:fillrange] = isa(fr, Function) ? map(fr, di[:x]) : fr di[:fillrange] = isa(fr, Function) ? map(fr, di[:x]) : fr
# handle ribbons
rib = ribbons[mod1(i,mr)]
di[:ribbon] = isa(rib, Function) ? map(rib, di[:x]) : rib
push!(series_list, RecipeData(di, ())) push!(series_list, RecipeData(di, ()))
end end
end end