Sunday, April 20, 2014

Chang The Fonts For All The Text in Matlab Plots

If you want to change font size for all the text in a figure, you can use findall to find all text handles, after which it's easy to change:


figureHandle = gcf;
%# make all text in the figure to size 14 and bold
set(findall(figureHandle,'type','text'),'fontSize',14,'fontWeight','bold')

No comments:

Post a Comment