axis label subscript in latex environment
古いコメントを表示
Hi,
I have following code for the ylabel. However, it does not show a proper subscript 'E'. I use MATLAB 2025a. Any help will be highly appreciated.
ylabel('$\tilde{p}_E \ (-)$','FontSize',14','FontName','TimesNewRoman','Interpreter','latex');
6 件のコメント
Dyuman Joshi
2025 年 12 月 19 日
I get the same result when using LaTeX here in the text editor. Since 'p' is lowercase, the uppercase subscript 'E' might look a bit out of place. You will observe the same with any other uppercase letter.
Here's the same with a lowercase 'e' -
Using $\tilde{p}^{}_{E}\ (-)$ results in a slightly lower 'E', but that's only marginal -

But anyways, seems like the issue (so to speak) is with LaTeX.
Chirag
2025 年 12 月 19 日
dpb
2025 年 12 月 19 日

I tried with (from left to right) R2024b, R2022b, R2019b and R2017b and can see no discernible difference.
Dyuman Joshi
2025 年 12 月 20 日
@Chirag, The image you have attached doesn't look like a MATLAB figure.
Maybe it is being exported from MATLAB using some function/functionality?
Matt J
2025 年 12 月 21 日
Here is how ChatGPT renders it (in another words, a completey non-Matlab environment),
To me, it looks the same.
Chirag
2025 年 12 月 22 日
回答 (1 件)
Ritam
2025 年 12 月 22 日
1 投票
Upon reviewing the figure, the character E is indeed rendered as a subscript; however, because it is uppercase, it occupies more vertical space and visually appears closer to the baseline, giving the impression that it is not properly subscripted.
カテゴリ
ヘルプ センター および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

