# How to make the legend fontsize larger in Makie.jl?

**URL:** <https://discourse.julialang.org/t/how-to-make-the-legend-fontsize-larger-in-makie-jl/58451>\
**Category:** Visualization\
**Created:** [April 2, 2021, 3:42pm UTC](https://discourse.julialang.org/t/how-to-make-the-legend-fontsize-larger-in-makie-jl/58451 "2021-04-02T15:42:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericphanson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ericphanson/32/215186_2.png) [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Post date:** [April 2, 2021, 3:42pm UTC](https://discourse.julialang.org/t/how-to-make-the-legend-fontsize-larger-in-makie-jl/58451/1 "2021-04-02T15:42:37Z")

</div>

Example:

```julia
julia> fig = Figure()
Scene (512px, 320px):
  0 Plots
  0 Child Scenes

julia> ax = Axis(fig[1,1])
Axis with 0 plots:

julia> lines!(ax, sort(rand(10)), rand(10), label="Plot")
Lines{Tuple{Vector{Point{2, Float32}}}}

julia> axislegend(ax)
Legend()

julia> save("test.png", fig, px_per_unit=2)
CairoScreen{Cairo.CairoSurfaceBase{UInt32}} with surface:
Cairo.CairoSurfaceBase{UInt32}(Ptr{Nothing} @0x00007fcfefa3dd90, 1024.0, 640.0)

```

 ![test](https://global.discourse-cdn.com/julialang/original/3X/2/d/2d92bdda2c5874c985352f579f5d85af4220c256.png)

(Here the fontsize looks fine, but in our actual plot we’d like it a bit bigger).

---

<div class="post-metadata">

**Author:** ![ericphanson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ericphanson/32/215186_2.png) [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Post date:** [April 2, 2021, 3:51pm UTC](https://discourse.julialang.org/t/how-to-make-the-legend-fontsize-larger-in-makie-jl/58451/2 "2021-04-02T15:51:25Z")

</div>

Seems like passing `labelsize` as a keyword argument to `axislegend` does the trick!

With

```julia
axislegend(ax; labelsize=50)

```

I get

 ![test](https://global.discourse-cdn.com/julialang/original/3X/2/8/28d534b45908a1b2384d65a8632c87bed0390817.png)
