From 8010fdf453ea2195dc455e54b0e088af2e3dd669 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Thu, 5 May 2022 11:18:59 +0200 Subject: [PATCH] permute h/vlines --- src/pipeline.jl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pipeline.jl b/src/pipeline.jl index 58d55020..89b6fb4f 100644 --- a/src/pipeline.jl +++ b/src/pipeline.jl @@ -351,6 +351,13 @@ function RecipesPipeline.add_series!(plt::Plot, plotattributes) sp = _prepare_subplot(plt, plotattributes) if plotattributes[:permute] != :none letter1, letter2 = plotattributes[:permute] + if plotattributes[:markershape] == :hline && (plotattributes[:permute] == (:x, :y) || + plotattributes[:permute] == (:y, :x)) + plotattributes[:markershape] = :vline + elseif plotattributes[:markershape] == :vline && (plotattributes[:permute] == (:x, :y) || + plotattributes[:permute] == (:y, :x)) + plotattributes[:markershape] = :hline + end plotattributes[letter1], plotattributes[letter2] = plotattributes[letter2], plotattributes[letter1] end