add permute, deprecate orientation (#4164)
* add series_permutation * works for dates and categorical input, not vector of strings * Update src/pipeline.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update src/pipeline.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * add test * correct test * make bar workign * add deprecation * rename series_permutation -> permute * add Documentation * fix uneccessary deprecation * permute h/vlines * Auto-format Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * 1.29.0 * Update Project.toml [skip ci] Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@@ -16,3 +16,12 @@ end
|
||||
@test pl[1][axis][:tickfontfamily] == "Times"
|
||||
end
|
||||
end
|
||||
|
||||
@testset "Permute recipes" begin
|
||||
pl = bar(["a", "b", "c"], [1, 2, 3])
|
||||
ppl = bar(["a", "b", "c"], [1, 2, 3], permute = (:x, :y))
|
||||
@test xticks(ppl) == yticks(pl)
|
||||
@test yticks(ppl) == xticks(pl)
|
||||
@test filter(isfinite, pl[1][1][:x]) == filter(isfinite, ppl[1][1][:y])
|
||||
@test filter(isfinite, pl[1][1][:y]) == filter(isfinite, ppl[1][1][:x])
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user