Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appearance of non-math hyphen changes with math in text #6028

Closed
Tillsten opened this issue Feb 18, 2016 · 1 comment
Closed

Appearance of non-math hyphen changes with math in text #6028

Tillsten opened this issue Feb 18, 2016 · 1 comment
Milestone

Comments

@Tillsten
Copy link
Contributor

See the following minimal example:

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.

@jenshnielsen jenshnielsen modified the milestones: 1.5.2 (Critical bug fix release), 2.0 (style change major release) Feb 18, 2016
@QuLogic QuLogic changed the title Appearence of non-math hypen changes when math Appearance of non-math hyphen changes with math in text Feb 18, 2016
@crazyo
Copy link
Contributor

crazyo commented 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

tacaswell added a commit that referenced this issue Mar 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants