MATLAB: Matlab, can you create a separate font size for the x tick mark label and y tick mark label

tick label size

Matlab, I would like the font sizes to be independent for all the axis attributes. Currently, the x and y axis labels must be the same size, and the tick labels for each axis must be the same size. I would like to have the x tick labels be size 12 and the y tick labels be size 20. I'd imagine that someone out there is interested in doing something similar for the axis labels also. While that is a long term fix, my current problem is that the greek letter pi displays at about half the height of numbers. While I am aware that I can put a text box in with a different font size, that isn't really an efficient solution.
Thanks,
dack

Best Answer

If you are using R2015b or later you can do the following:
hAxes.XAxis.FontSize = 12;
hAxes.YAxis.FontSize = 20;
for an axes handle hAxes.