Borrar filtros
Borrar filtros

ylabel Italic , Two fonts

123 visualizaciones (últimos 30 días)
Mahmoud Khadijeh
Mahmoud Khadijeh el 27 de Feb. de 2020
Comentada: Star Strider el 2 de Mzo. de 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 )
Is it possible to do that on MATALB ?

Respuesta aceptada

Star Strider
Star Strider el 27 de Feb. de 2020
Use ‘\it’ to begin the italic string and ‘\rm’ to reset to the normal display:
ylabel('\itc44\rm(GPa)')
  2 comentarios
Mahmoud Khadijeh
Mahmoud Khadijeh el 2 de Mzo. de 2020
Thank you.. it works.
Star Strider
Star Strider el 2 de Mzo. de 2020
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by