From c001048ff60812f25ba62f72a2c538cfd1a40f43 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Wed, 20 Oct 2021 11:14:02 +0200 Subject: [PATCH] fix font calls --- src/utils.jl | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/utils.jl b/src/utils.jl index a5409ba3..4ffb31bf 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -982,22 +982,22 @@ titlefont(sp::Subplot) = font(; color = sp[:titlefontcolor], ) -legendfont(sp::Subplot) = font( - sp[:legend_font_family], - sp[:legend_font_pointsize], - sp[:legend_font_valign], - sp[:legend_font_halign], - sp[:legend_font_rotation], - sp[:legend_font_color], +legendfont(sp::Subplot) = font(; + family = sp[:legend_font_family], + pointsize = sp[:legend_font_pointsize], + valign = sp[:legend_font_valign], + halign = sp[:legend_font_halign], + rotation = sp[:legend_font_rotation], + color = sp[:legend_font_color], ) -legendtitlefont(sp::Subplot) = font( - sp[:legend_title_font_family], - sp[:legend_title_font_pointsize], - sp[:legend_title_font_valign], - sp[:legend_title_font_halign], - sp[:legend_title_font_rotation], - sp[:legend_title_font_color], +legendtitlefont(sp::Subplot) = font(; + family = sp[:legend_title_font_family], + pointsize = sp[:legend_title_font_pointsize], + valign = sp[:legend_title_font_valign], + halign = sp[:legend_title_font_halign], + rotation = sp[:legend_title_font_rotation], + color = sp[:legend_title_font_color], ) tickfont(ax::Axis) = font(;