From 9164ee09cbbbd6626640bc385e7a542ffc4e5c98 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Sun, 8 Aug 2021 23:04:18 +0200 Subject: [PATCH] fix wrong method signature --- .JuliaFormatter.toml | 3 +++ src/backends/gr.jl | 9 +++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.JuliaFormatter.toml b/.JuliaFormatter.toml index 5e092a6d..49843713 100644 --- a/.JuliaFormatter.toml +++ b/.JuliaFormatter.toml @@ -1,4 +1,7 @@ style = "blue" import_to_using = false always_use_return = false +conditional_to_if = false +whitespace_typedefs = true short_to_long_function_def = false +annotate_untyped_fields_with_any = false diff --git a/src/backends/gr.jl b/src/backends/gr.jl index 8fb040ea..49dace78 100644 --- a/src/backends/gr.jl +++ b/src/backends/gr.jl @@ -768,22 +768,20 @@ function _update_min_padding!(sp::Subplot{GRBackend}) h = 0mm if !isempty(first(xticks)) gr_set_font( - tickfont(xaxis), + tickfont(xaxis), sp, halign = (:left, :hcenter, :right)[sign(xaxis[:rotation]) + 2], valign = (xaxis[:mirror] ? :bottom : :top), rotation = xaxis[:rotation], - sp ) l = 0.01 + last(gr_get_ticks_size(xticks, xaxis[:rotation])) h = max(h, 1mm + get_size(sp)[2] * l * px) end if !isempty(first(yticks)) gr_set_font( - tickfont(yaxis), + tickfont(yaxis), sp, halign = (:left, :hcenter, :right)[sign(yaxis[:rotation]) + 2], valign = (yaxis[:mirror] ? :bottom : :top), rotation = yaxis[:rotation], - sp ) l = 0.01 + last(gr_get_ticks_size(yticks, yaxis[:rotation])) h = max(h, 1mm + get_size(sp)[2] * l * px) @@ -799,12 +797,11 @@ function _update_min_padding!(sp::Subplot{GRBackend}) if !isempty(first(zticks)) gr_set_font( - tickfont(zaxis), + tickfont(zaxis), sp, halign = (zaxis[:mirror] ? :left : :right), valign = (:top, :vcenter, :bottom)[sign(zaxis[:rotation]) + 2], rotation = zaxis[:rotation], color = zaxis[:tickfontcolor], - sp ) l = 0.01 + first(gr_get_ticks_size(zticks, zaxis[:rotation])) w = 1mm + get_size(sp)[1] * l * px