# How can I change the font size of tick labels on the axes of a graph?

776 views (last 30 days)

Show older comments

##### 0 Comments

### Answers (2)

Cris LaPierre
on 29 May 2020

Edited: Cris LaPierre
on 29 May 2020

plot(1:5)

ax=gca;

ax.FontSize = 20

ax.XAxis.FontSize = 20

##### 5 Comments

Giuseppe Degan Di Dieco
on 27 Apr 2021

Dear Cris,

your solution worked for me too.

Thanks for your brilliant help.

Best!

### See Also

### Categories

### Products

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!