# How to set the font size for labels in a legend using GMT.jl

**URL:** <https://discourse.julialang.org/t/how-to-set-the-font-size-for-labels-in-a-legend-using-gmt-jl/97778>\
**Category:** Geo\
**Tags:** gmt\
**Created:** [April 22, 2023, 6:33am UTC](https://discourse.julialang.org/t/how-to-set-the-font-size-for-labels-in-a-legend-using-gmt-jl/97778 "2023-04-22T06:33:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [April 22, 2023, 11:56am UTC](https://discourse.julialang.org/t/how-to-set-the-font-size-for-labels-in-a-legend-using-gmt-jl/97778/2 "2023-04-22T11:56:52Z")

</div>

Use the `fontsize=xx` inside the `legend` keyword. _e.g._

```julia
lines(1:12, 1:12, figsize=(6,4), legend=(label="data",pos=:LT,box=:none, fontsize=12), show=true)

```

See the [plot docs](https://www.generic-mapping-tools.org/GMTjl_doc/documentation/modules/plot/index.html#plot) (search for `legend and label`). And refer also to the GMT table with the [fonts names](https://docs.generic-mapping-tools.org/latest/cookbook/postscript-fonts.html)

---

_[View the full topic](https://discourse.julialang.org/t/how-to-set-the-font-size-for-labels-in-a-legend-using-gmt-jl/97778)._
