フィルターのクリア

Is it possible to put xlabel text in two rows but with different font size?

24 ビュー (過去 30 日間)
Mr M.
Mr M. 2015 年 10 月 28 日
コメント済み: Praveen Choudhary 2019 年 10 月 4 日
Is it possible to put xlabel text in two rows but with different font size?

採用された回答

Jan
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)'})

その他の回答 (1 件)

Stalin Samuel
Stalin Samuel 2015 年 10 月 28 日
  1 件のコメント
Praveen Choudhary
Praveen Choudhary 2019 年 10 月 4 日
newline = char(10);
ylabel(['xyz and',newline,'xyz '],'FontName','Times New Roman','FontSize',12)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by