MATLAB: How to set the font size of the text labels in a polar plot in MATLAB

colorhandleMATLABplotpolarposition;

I have created a polar plot in MATLAB. How can I set the 'FontSize' property of the axes?
Reproduction steps:
t = 0:.01:2*pi;
polar(t,sin(2*t).*cos(2*t),'--r')
set(gca,'FontSize',24)

Best Answer

For R2016a and later versions:
'polaraxes' and 'polarplot' functions can be used to change the fonts in polar plots. Here is a sample code:
t = 0:.01:2*pi;
ax = polaraxes;
polarplot(ax, t, sin(2*t).*cos(2*t), '--r');
ax.FontSize = 18;
For R2015b and prior versions:
Polar plots in MATLAB are a little different from plots on cartesian axes. In order to change the text in a polar plot, please use the FINDALL command to find the text objects in the figure. Then set the 'FontSize' of each text object individually in a FOR-loop as shown in the example below:
 
t = 0:.01:2*pi;
polar(t,sin(2*t).*cos(2*t),'--r')
th = findall(gcf,'Type','text');
for i = 1:length(th),
set(th(i),'FontSize',24)
end