How can I write different subscription font type of label?
Show older comments
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?

Accepted Answer
More Answers (2)
Walter Roberson
on 20 Dec 2019
Edited: Walter Roberson
on 20 Dec 2019
1 vote
Patrick Laux
on 16 Jul 2020
0 votes
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 Comment
Patrick Laux
on 16 Jul 2020
ah okay, I found it:
you have to specifiy latex interpreter
set(gca,'TickLabelInterpreter', 'tex');
Categories
Find more on Labels and Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
