ylabel Italic , Two fonts
122 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mahmoud Khadijeh
le 27 Fév 2020
Commenté : Star Strider
le 2 Mar 2020
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 )
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/273934/image.jpeg)
Is it possible to do that on MATALB ?
0 commentaires
Réponse acceptée
Star Strider
le 27 Fév 2020
Use ‘\it’ to begin the italic string and ‘\rm’ to reset to the normal display:
ylabel('\itc44\rm(GPa)')
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!