How to change X in xlabel to italic font ?

74 次查看(过去 30 天)
Awat
Awat 2017-1-20
编辑: Jan 2017-8-20
xlabel('Distance, X','FontName', 'Times New Roman','FontSize',28,'Color','k')

回答(2 个)

Walter Roberson
Walter Roberson 2017-1-20
'FontAngle', 'italic'

Jan
Jan 2017-8-20
编辑:Jan 2017-8-20
xlabel('Distance, $X$', 'FontName', 'Times New Roman', ...
'FontSize',28,'Color','k', 'Interpreter', 'LaTeX')
or
xlabel('Distance, \textit{X}', 'FontName', 'Times New Roman', ...
'FontSize',28,'Color','k', 'Interpreter', 'LaTeX')

类别

Help CenterFile Exchange 中查找有关 Legend 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by