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?
2 views (last 30 days)
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?
0 Comments
Answers (1)
dpb
on 1 Mar 2014
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.
0 Comments
See Also
Categories
Find more on Graphics Objects 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!