From 41cf64b400ed9dd83199cf5bff1bb2ac08036e46 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 1 Nov 2021 12:46:08 +0100 Subject: [PATCH] Format .jl files [skip ci] (#3914) Co-authored-by: t-bltg --- src/backends/pyplot.jl | 10 +++++++--- src/colorbars.jl | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index bf94c8b3..3f1a9141 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -1635,7 +1635,10 @@ function py_add_legend(plt::Plot, sp::Subplot, ax) dash_capstyle = "butt", dash_joinstyle = "miter", marker = py_marker(_cycle(series[:markershape], 1)), - markersize = py_thickness_scale(plt, 0.8 * sp[:legend_font_pointsize]), + markersize = py_thickness_scale( + plt, + 0.8 * sp[:legend_font_pointsize], + ), markeredgecolor = py_color( single_color(get_markerstrokecolor(series)), get_markerstrokealpha(series), @@ -1646,8 +1649,9 @@ function py_add_legend(plt::Plot, sp::Subplot, ax) ), markeredgewidth = py_thickness_scale( plt, - 0.8 * get_markerstrokewidth(series) * sp[:legend_font_pointsize] / - first(series[:markersize]), + 0.8 * + get_markerstrokewidth(series) * + sp[:legend_font_pointsize] / first(series[:markersize]), ), # retain the markersize/markerstroke ratio from the markers on the plot ) push!(handles, handle) diff --git a/src/colorbars.jl b/src/colorbars.jl index 5131e269..f5721b4e 100644 --- a/src/colorbars.jl +++ b/src/colorbars.jl @@ -9,7 +9,7 @@ get_clims(sp::Subplot)::Tuple{Float64,Float64} = haskey(sp.attr, :clims_calculated) ? sp[:clims_calculated] : update_clims(sp) get_clims(series::Series)::Tuple{Float64,Float64} = haskey(series.plotattributes, :clims_calculated) ? - series[:clims_calculated]::Tuple{Float64,Float64} : update_clims(series) + series[:clims_calculated]::Tuple{Float64,Float64} : update_clims(series) get_clims(sp::Subplot, series::Series)::Tuple{Float64,Float64} = series[:colorbar_entry] ? get_clims(sp) : get_clims(series)