Is it possible to put xlabel text in two rows but with different font size?
7 次查看(过去 30 天)
显示 更早的评论
Is it possible to put xlabel text in two rows but with different font size?
0 个评论
采纳的回答
Jan
2015-10-28
The documentation of xlabel explains with an example, how a multi-line output works. Did you read it? Then the only problem is the font size, which is explained there also:
plot((1:10).^2)
xlabel({'\fontsize{15}Population','\fontsize{20}(in thousands)'})
0 个评论
更多回答(1 个)
Stalin Samuel
2015-10-28
1 个评论
Praveen Choudhary
2019-10-4
newline = char(10);
ylabel(['xyz and',newline,'xyz '],'FontName','Times New Roman','FontSize',12)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Labels and Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!