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(;