# How do I change font and font size in PGFPlotsX?

**URL:** <https://discourse.julialang.org/t/how-do-i-change-font-and-font-size-in-pgfplotsx/94830>\
**Category:** Visualization\
**Created:** [February 18, 2023, 11:21am UTC](https://discourse.julialang.org/t/how-do-i-change-font-and-font-size-in-pgfplotsx/94830 "2023-02-18T11:21:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmed\_Salih](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ahmed_salih/32/206579_2.png) [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Post date:** [February 18, 2023, 11:21am UTC](https://discourse.julialang.org/t/how-do-i-change-font-and-font-size-in-pgfplotsx/94830/1 "2023-02-18T11:21:12Z")

</div>

Hello!

I am trying to change the font size in this example:

```julia
x = range(0; stop =2*pi, length = 100)
@pgf GroupPlot(
    {
        group_style =
        {
            group_size="2 by 1",
            xticklabels_at="edge bottom",
            yticklabels_at="edge left",
            # font_size = "tiny",
        },
        no_markers
    },
    {},
    PlotInc(Table(x, sin.(x))),
    PlotInc(Table(x, sin.(x .+ 0.5))),
    {},
    PlotInc(Table(x, cos.(x))),
    PlotInc(Table(x, cos.(x .+ 0.5))))

```

Which produces:

![image](https://global.discourse-cdn.com/julialang/original/3X/6/b/6ba07843cc33a69ff373e2b64ee791fa9e7513ca.png)

The out-commented part font\_size, gives an error. Anyone knows how to?

Kind regards
