Why do the ylabel renderings look different when Property Inspector says they are the same?

1 view (last 30 days)
The image below is a screenshot of two different y-axis labels that I have in two different figure windows, generated in R2020a. The Property Inspector says the text properties of these lables are all the same, in particular the Fonts are both Helvetica and FontSize=39.6 but clearly they are not the same. The o's and the i's look very different. Does anyone know what might account for the differences in their appearance that I might not be seeing in the Property Inspector?

Accepted Answer

Matt J
Matt J on 16 Nov 2020
I figured it out. The syntax for the second plot needed to be,
ylabel('Local Deviation (\%)','Interpreter','latex') ; %percent sign needs slash

More Answers (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov on 16 Nov 2020
It looks like in the first one, "interpreter" option with "latex" has been employed. The second one is indeed is the default font type Helvetica.
  2 Comments
Matt J
Matt J on 16 Nov 2020
Edited: Matt J on 16 Nov 2020
I am using essentially the same call to ylabel in both cases,
ylabel('Percent Noise','Interpreter','latex')
ylabel('Local Deviation (%)','Interpreter','latex')
The Property Inspector also shows both to be using the LaTeX interpreter, but even if that were not the case, shouldn't the font appearance be invariant to the Interpreter?

Sign in to comment.

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!