permute h/vlines
This commit is contained in:
parent
43183dd88f
commit
8010fdf453
@ -351,6 +351,13 @@ function RecipesPipeline.add_series!(plt::Plot, plotattributes)
|
|||||||
sp = _prepare_subplot(plt, plotattributes)
|
sp = _prepare_subplot(plt, plotattributes)
|
||||||
if plotattributes[:permute] != :none
|
if plotattributes[:permute] != :none
|
||||||
letter1, letter2 = plotattributes[:permute]
|
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[letter1], plotattributes[letter2] =
|
||||||
plotattributes[letter2], plotattributes[letter1]
|
plotattributes[letter2], plotattributes[letter1]
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user