ylabel Italic , Two fonts

143 ビュー (過去 30 日間)
Mahmoud Khadijeh
Mahmoud Khadijeh 2020 年 2 月 27 日
コメント済み: Star Strider 2020 年 3 月 2 日
Hello,
I have question regarding y axis in MATLAB
In y-axis , is it possible to use two font in y axis so we can write the symbol, for exapmle, in the (italic) font and the unit in the ( Arial) font
I did this figure on Excel.
As you can see that C44 is writen in the ( italic ) font and GPa is ( Arial )
Is it possible to do that on MATALB ?

採用された回答

Star Strider
Star Strider 2020 年 2 月 27 日
Use ‘\it’ to begin the italic string and ‘\rm’ to reset to the normal display:
ylabel('\itc44\rm(GPa)')
  2 件のコメント
Mahmoud Khadijeh
Mahmoud Khadijeh 2020 年 3 月 2 日
Thank you.. it works.
Star Strider
Star Strider 2020 年 3 月 2 日
As always, my pleasure!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDialog Boxes についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by