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
Appearance of non-math hyphen changes with math in text #6028
plt.rcParams['mathtext.fontset'] = 'stixsans' #change to cm for normal behavior
mv = u'MV$^{2+}$'
cor = u'Al-cor'
plt.text(0.5, 0.5, cor)
plt.text(0.5, 0.3, cor + mv)
In the second case the hypen is much longer than in the first. The behavior
depends on the mathtext-setting, which is surprising. Confirmed in Python 2.7 and 3.5,
also in 2.X.
Activity
[-]Appearence of non-math hypen changes when math [/-][+]Appearance of non-math hyphen changes with math in text[/+]crazyo commentedon Feb 29, 2016
The problem is that hyphen sign is intentionally converted to minus in order to avoid ambiguity, including those ones in texts. I made a fix: #6073
Merge pull request #6073 from crazyo/master