How can I write different subscription font type of label?
Mostra commenti meno recenti
Like figure below, I want to write phi and CH4 for diffrent font type.
(phi should be Italic but CH4 should not. & CH4 must be a subscription of phi)
How can i do this?

Risposta accettata
Più risposte (2)
Walter Roberson
il 20 Dic 2019
Modificato: Walter Roberson
il 20 Dic 2019
1 voto
Patrick Laux
il 16 Lug 2020
0 voti
Hi,
interestingly, subscripting does not work in combination with the boxplot function.
Any help appreciated.
A=rand(100,1)
boxplot(A)
set(gca, 'XTickLabel', {'test_{hey}'})
1 Commento
Patrick Laux
il 16 Lug 2020
ah okay, I found it:
you have to specifiy latex interpreter
set(gca,'TickLabelInterpreter', 'tex');
Categorie
Scopri di più su Labels and Annotations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

