From ba3e75e710ce69a9dc5b0cc68f14febbfd074cfc Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Sun, 19 Nov 2017 15:16:49 +0100 Subject: [PATCH] fix errors --- src/args.jl | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/args.jl b/src/args.jl index a5a63ad5..84f8a4bc 100644 --- a/src/args.jl +++ b/src/args.jl @@ -418,10 +418,10 @@ const _all_defaults = KW[ const _initial_defaults = deepcopy(_all_defaults) # to be able to reset font sizes to initial values -const _initial_fontsizes = Dict(:titlefont => _subplot_defaults[:titlefont].pointsize, - :legendfont => _subplot_defaults[:legendfont].pointsize, - :tickfont => _axis_defaults[:tickfont].pointsize, - :guidefont => _axis_defaults[:guidefont].pointsize) +const _initial_fontsizes = Dict(:titlefont => _subplot_defaults[:titlefontsize], + :legendfont => _subplot_defaults[:legendfontsize], + :tickfont => _axis_defaults[:tickfontsize], + :guidefont => _axis_defaults[:guidefontsize]) const _all_args = sort(collect(union(map(keys, _all_defaults)...))) @@ -856,8 +856,9 @@ function preprocessArgs!(d::KW) # handle individual axes font args for letter in (:x, :y, :z) for fontname in (:tickfont, :guidefont) - args = pop!(d, Symbol(letter, fontname), ()) - processFontArgs!(d, Symbol(letter, fontname), args) + args = pop!(d, Symbol(letter, fontname), ()) + processFontArgs!(d, Symbol(letter, fontname), args) + end end # handle line args