Set title and axis font type, scale and size
5 次查看(过去 30 天)
显示 更早的评论
Hi,
How can I change the title and axis font type, scale and size of this script:
intensity_area_prime= diff(intensity_area);
plot(intensity_area_prime, 'm - *'), grid on;
title('Granulometry (Size Distribution) of Snowflakes');
set(gca, 'xtick', [0 2 4 6 8 10 12 14 16 18 20 22]);
xlabel('radius of snowflakes (pixels)');
ylabel('Sum of pixel values in snowflakes as a function of radius');
Thanks
2 个评论
Adam Danz
2020-1-30
编辑:Adam Danz
2022-3-18
If you'd like to scale the font size of a figure/axes so that each text component maintains its relative size, see supersizeme() from the file exchange.
Update: Starting in MATLAB R2022a, use the fontsize function to scale font sizes and set font units in a figure. Release R2022a also includes the new fontname function to set font names within a figure. For a review, see this Community Highlight.
回答(2 个)
Mech Princess
2013-2-8
编辑:Mech Princess
2013-2-8
add ,'FontSize',22) to the end
example
xlabel('radius of snowflakes (pixels)','FontSize',22);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Title 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!