how to change axis fort size

1 view (last 30 days)
Ibrahim AlZoubi
Ibrahim AlZoubi on 3 May 2020
Answered: Tommy on 3 May 2020
how can i change axis font size?
ex: to make it fit i wanna reduce fot size

Answers (1)

Tommy
Tommy on 3 May 2020
By setting the 'FontSize' property of your axes. For example, if the axes handle is contained in ax, you can use
ax.FontSize = newFontSize;
Other ways to make your labels easier to read include repositioning the ticks, only labeling some of your ticks, or rotating your labels.

Community Treasure Hunt

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

Start Hunting!