How can I write different subscription font type of label?
이전 댓글 표시
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?

채택된 답변
추가 답변 (2개)
Walter Roberson
2019년 12월 20일
편집: Walter Roberson
2019년 12월 20일
1 개 추천
Patrick Laux
2020년 7월 16일
0 개 추천
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
Patrick Laux
2020년 7월 16일
ah okay, I found it:
you have to specifiy latex interpreter
set(gca,'TickLabelInterpreter', 'tex');
카테고리
도움말 센터 및 File Exchange에서 Labels and Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

