From e8a9d13d6ac3e3f6c8f3c39aa67803f5d6f74a53 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Thu, 5 May 2022 11:32:35 +0200 Subject: [PATCH] Auto-format Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- src/args.jl | 2 +- src/consts.jl | 2 +- src/pipeline.jl | 9 +++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/args.jl b/src/args.jl index 998839ca..c5fc4724 100644 --- a/src/args.jl +++ b/src/args.jl @@ -400,7 +400,7 @@ const _series_defaults = KW( :stride => (1, 1), # array stride for wireframe/surface, the first element is the row stride and the second is the column stride. :connections => nothing, # tuple of arrays to specifiy connectivity of a 3d mesh :z_order => :front, # one of :front, :back or integer in 1:length(sp.series_list) - :permute => :none, # tuple of two symbols to be permuted + :permute => :none, # tuple of two symbols to be permuted :extra_kwargs => Dict(), ) diff --git a/src/consts.jl b/src/consts.jl index c77c45c4..6f4b22d2 100644 --- a/src/consts.jl +++ b/src/consts.jl @@ -1,5 +1,5 @@ -const _deprecated_attributes = Dict{Symbol, Symbol}(:orientation => :permute) +const _deprecated_attributes = Dict{Symbol,Symbol}(:orientation => :permute) const _all_defaults = KW[_series_defaults, _plot_defaults, _subplot_defaults] const _initial_defaults = deepcopy(_all_defaults) diff --git a/src/pipeline.jl b/src/pipeline.jl index 89b6fb4f..3bd3f1eb 100644 --- a/src/pipeline.jl +++ b/src/pipeline.jl @@ -351,11 +351,12 @@ 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)) + 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)) + elseif plotattributes[:markershape] == :vline && ( + plotattributes[:permute] == (:x, :y) || plotattributes[:permute] == (:y, :x) + ) plotattributes[:markershape] = :hline end plotattributes[letter1], plotattributes[letter2] =