# How to make only some part of a y axis label italic?

1.725 views (last 30 days)
Sidd on 5 Apr 2018
Commented: mukul chankaya on 2 Mar 2021
I am trying to label my y axis with something called a glass transition temperature. This is expressed in text as Tg (where the T needs to be italic, but the g is regular font and subscripted). I have tried ylabel('\it T_g ,[°C]') but it italicizes the entire axis label.
Any idea how to do this?

Bart Kieviet on 11 Sep 2018
Edited: Bart Kieviet on 11 Sep 2018
It's:
ylabel('{\it T}_g ,[°C]')
So with {} around the text that needs to be italic.
mukul chankaya on 2 Mar 2021
Thankyou very much, used the same command for .fig file (propoerty editor) it worked. Thanks again