You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Vertical alignment of tick labels containing minus in font size other than 10 with usetex=True #17574
When TeX is used to typset text, minus signs cause a vertical offset in tick labels for certain font sizes. This is related to #6323, which was fixed but only for given font sizes.
The problem with the fix in #16366 seems to be that it looks for character 0 in font "cmsy10". I am not an expert, but I think the 10 refers to the font size, and for example "cmsy8" is used for 8 pt font.
On the left (font size 10) axis labels are correctly aligned are whereas on the right (font size 8) those labels which contain a minus sign are noticably lower.
Activity
anntzer commentedon Jun 4, 2020
Changing the check to match any
cmsy\d+seems reasonable, do you want to make a PR?jkseppan commentedon Aug 4, 2020
Another solution could be to add
\vphantom{-}to the beginning of all tick labels when usetex is enabled.