# How to change font size in Plots.jl

**URL:** <https://discourse.julialang.org/t/how-to-change-font-size-in-plots-jl/18401>\
**Category:** New to Julia\
**Tags:** plots\
**Created:** [December 7, 2018, 12:59am UTC](https://discourse.julialang.org/t/how-to-change-font-size-in-plots-jl/18401 "2018-12-07T00:59:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gregory\_Martinez](https://avatars.discourse-cdn.com/v4/letter/g/cdc98d/32.png) [@Gregory\_Martinez](https://discourse.julialang.org/u/Gregory_Martinez)\
**Post date:** [December 7, 2018, 12:59am UTC](https://discourse.julialang.org/t/how-to-change-font-size-in-plots-jl/18401/1 "2018-12-07T00:59:20Z")

</div>

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

```julia
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?

---

<div class="post-metadata">

**Author:** ![mantzaris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mantzaris/32/3852_2.png) [@mantzaris](https://discourse.julialang.org/u/mantzaris)\
**Post date:** [July 18, 2019, 3:04am UTC](https://discourse.julialang.org/t/how-to-change-font-size-in-plots-jl/18401/2 "2019-07-18T03:04:10Z")

</div>

This does what I think you want to configure

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

```
