From 143eddfdef261fa49891521b5a49fd40612f73d6 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Wed, 20 Apr 2022 16:24:49 +0200 Subject: [PATCH] works for dates and categorical input, not vector of strings --- src/pipeline.jl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/pipeline.jl b/src/pipeline.jl index 32e18127..1a9d75df 100644 --- a/src/pipeline.jl +++ b/src/pipeline.jl @@ -68,6 +68,17 @@ end function _preprocess_userrecipe(kw::AKW) _add_markershape(kw) + if get(kw,:series_permutation, default(:series_permutation)) != :none + l1, l2 = kw[:series_permutation] + for k in _axis_args + k1 = _attrsymbolcache[l1][k] + k2 = _attrsymbolcache[l2][k] + kwk = keys(kw) + if k1 in kwk || k2 in kwk + kw[k1], kw[k2] = get(kw, k2, default(k2)), get(kw, k1, default(k1)) + end + end + end # map marker_z if it's a Function if isa(get(kw, :marker_z, default(:marker_z)), Function) # TODO: should this take y and/or z as arguments?