From d8cd17449321ee908b947fdd3a8a483067790dc9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 28 Nov 2021 10:27:13 +0100 Subject: [PATCH] Format .jl files [skip ci] (#3960) Co-authored-by: t-bltg --- src/args.jl | 5 ++++- src/layouts.jl | 6 +++--- src/utils.jl | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/args.jl b/src/args.jl index d5c3115a..f76a6f59 100644 --- a/src/args.jl +++ b/src/args.jl @@ -1743,7 +1743,10 @@ function slice_arg!( ) v = get(plotattributes_in, k, plotattributes_out[k]) plotattributes_out[k] = - if haskey(plotattributes_in, k) && typeof(v) <: AMat && !isempty(v) && !(k in _plot_args) + if haskey(plotattributes_in, k) && + typeof(v) <: AMat && + !isempty(v) && + !(k in _plot_args) slice_arg(v, idx) else v diff --git a/src/layouts.jl b/src/layouts.jl index f9ec793d..6f0548de 100644 --- a/src/layouts.jl +++ b/src/layouts.jl @@ -494,7 +494,7 @@ function layout_args(sztup::NTuple{3,Integer}) GridLayout(nr, nc), n end -layout_args(nt::NamedTuple) = EmptyLayout(;nt...), 1 +layout_args(nt::NamedTuple) = EmptyLayout(; nt...), 1 function layout_args(m::AbstractVecOrMat) sz = size(m) @@ -514,7 +514,8 @@ function layout_args(layout::GridLayout) layout, n end -layout_args(n_override::Integer, layout::Union{AbstractVecOrMat,GridLayout}) = layout_args(layout) +layout_args(n_override::Integer, layout::Union{AbstractVecOrMat,GridLayout}) = + layout_args(layout) layout_args(huh) = error("unhandled layout type $(typeof(huh)): $huh") @@ -578,7 +579,6 @@ function build_layout(layout::GridLayout, n::Integer, plts::AVec{Plot}) layout, subplots, spmap end - # ------------------------------------------------------------------------- # make all reference the same axis extrema/values. diff --git a/src/utils.jl b/src/utils.jl index ebb48f29..ae25576e 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -513,7 +513,7 @@ for comp in (:line, :fill, :marker) end end - $get_compcolor(series, clims::Tuple{<:Number, <:Number}, i::Int = 1) = + $get_compcolor(series, clims::Tuple{<:Number,<:Number}, i::Int = 1) = $get_compcolor(series, clims[1], clims[2], i) function $get_compcolor(series, i::Int = 1)