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

20 visualizzazioni (ultimi 30 giorni)
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'})

Risposte (1)

Sindar
Sindar il 30 Apr 2020
Modificato: Sindar il 30 Apr 2020
Set the tick label interpreter to tex:
ax=gca;
ax.TickLabelInterpreter = 'tex';
or
set(gca,'TickLabelInterpreter','tex')

Community Treasure Hunt

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

Start Hunting!

Translated by