How to change font size in Plots.jl

So, I’m trying to change the font size using Plots.jl for outputed graphs, but whatever option I use, nothing changes. I’m trying

using Plots
plot(flux, yscale=:log10, xlabel="wavelegth", 
    ylabel="flux",
    xtickfont=font(18), 
    ytickfont=font(18), 
    guidefont=font(18), 
    legendfont=font(18))

But, nothing happens to the font size. What’s the correct usage?

edit: This seems to be only a problem in jupyter notebook. So, I should ask, how do I change the fontsize using Plots.jl in jupyter notebook?

1 Like

This does what I think you want to configure

julia> plot(rand(40),xtickfontsize=18,ytickfontsize=18,xlabel="wavelength",xguidefontsize=18,yscale=:log10,ylabel="flux",yguidefontsize=18,legendfontsize=18) here
17 Likes