# Set axis-label size in Makie

**URL:** <https://discourse.julialang.org/t/set-axis-label-size-in-makie/61006>\
**Category:** General Usage\
**Tags:** visualization, makie\
**Created:** [May 12, 2021, 8:16am UTC](https://discourse.julialang.org/t/set-axis-label-size-in-makie/61006 "2021-05-12T08:16:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Post date:** [May 12, 2021, 8:16am UTC](https://discourse.julialang.org/t/set-axis-label-size-in-makie/61006/1 "2021-05-12T08:16:03Z")

</div>

How does one set the size of the xlabel and ylabel in Makie? That is, change the font-size that makes up the label.

Can a size be set globally, or would one have to do it for each plot?

---

<div class="post-metadata">

**Author:** ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Post date:** [May 12, 2021, 8:24am UTC](https://discourse.julialang.org/t/set-axis-label-size-in-makie/61006/2 "2021-05-12T08:24:42Z")

</div>

Found it! An `Axis` has a field called attributes, in which I found `xlabelsize => 16.0`. This can be set either by  
`plot(xvalues, yvalues, axis=(xlabelsize=20))`  
or by having an Axis object `ax`, and setting the value by `ax.xlabelsize=20`.

On doing it globally, it is explained in [Theming · Makie Plotting Ecosystem (juliaplots.org)](https://makie.juliaplots.org/stable/theming.html). MWE, copied from the documentation:

```julia
fontsize_theme = Theme(fontsize = 20)
set_theme!(fontsize_theme)

```
