Can I change the font of the ticks of any individual axis? I dont want to change, say, x-axis ticks font but only my y-axis ones. Can anyone please help?
Show older comments
xlim([1999 2030])
set(gca, 'ylim', [0 33], 'Layer', 'top', 'fontsize', 10)
This code changes the fonts of both x and y-axis. How can I control the font of a single axis?
Answers (1)
dpb
on 1 Mar 2014
0 votes
No can do natively, font characteristics are defined at the axes object level, not for each axis within the axes.
You could manually write text, however.
Categories
Find more on Graphics Object Properties in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!