ylabel Italic , Two fonts

조회 수: 218 (최근 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 CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by