added resetfontsizes()

This commit is contained in:
Florian Oswald 2017-05-17 15:31:26 +02:00 committed by GitHub
parent 05eb687ca4
commit af56d6f265

View File

@ -303,6 +303,18 @@ function scalefontsizes(factor::Number)
end
end
function resetfontsize(k::Symbol)
f = default(k)
default(k,f)
end
"Reset all fonts to default size"
function resetfontsizes()
for k in (:titlefont, :guidefont, :tickfont, :legendfont)
resetfontsize(k, factor)
end
end
"Wrap a string with font info"
immutable PlotText
str::AbstractString