How to make only some part of a y axis label italic? (in boxplot?)

20 次查看(过去 30 天)
How to make italic in a boxplot lable?
Is working
ylabel('{\it text123} texting (%)')
But this not working:
boxplot(y,'Labels',{'{\it text} text','FC','SD Criterion'})

回答(1 个)

Sindar
Sindar 2020-4-30
编辑:Sindar 2020-4-30
Set the tick label interpreter to tex:
ax=gca;
ax.TickLabelInterpreter = 'tex';
or
set(gca,'TickLabelInterpreter','tex')

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by