Skip to content

Commit

Permalink
fix: Consistent font and fontsize for Axis.subtitle, Axis3, Label
Browse files Browse the repository at this point in the history
  • Loading branch information
musoke committed Oct 3, 2024
1 parent 3e28ef4 commit 23e3c7f
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion src/to_makie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,21 @@ function MakieCore.Theme(
font = setting.font,
Axis = (
titlefont = setting.font,
subtitlefont = setting.font,
xlabelfont = setting.font,
ylabelfont = setting.font,
xticklabelfont = setting.font,
yticklabelfont = setting.font,
),
Axis3 = (
titlefont = setting.font,
xlabelfont = setting.font,
ylabelfont = setting.font,
zlabelfont = setting.font,
xticklabelfont = setting.font,
yticklabelfont = setting.font,
zticklabelfont = setting.font,
),
Legend = (
titlefont = setting.font,
labelfont = setting.font,
Expand All @@ -36,6 +46,9 @@ function MakieCore.Theme(
labelfont = setting.font,
ticklabelfont = setting.font,
),
Label = (
font = setting.font,
),
),
theme,
)
Expand All @@ -47,14 +60,25 @@ function MakieCore.Theme(
MakieCore.Theme(
fontsize = main,
Axis = (
titlesize = main,
subtitlesize = main,
xticklabelsize = small,
yticklabelsize = small,
xlabelsize = main,
ylabelsize = main,
),
Axis3 = (
titlesize = main,
subtitlesize = main,
xticklabelsize = small,
yticklabelsize = small,
zticklabelsize = small,
xlabelsize = main,
ylabelsize = main,
zlabelsize = main,
),
Legend = (;
labelsize = main
labelsize = main,
),
Colorbar = (
labelsize = main,
Expand Down

0 comments on commit 23e3c7f

Please sign in to comment.