8000 Hyphen as a subscript doesn't appear at certain font sizes · Issue #4428 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Hyphen as a subscript doesn't appear at certain font sizes #4428

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

Closed
jhpalmieri opened this issue May 14, 2015 · 3 comments
Closed

Hyphen as a subscript doesn't appear at certain font sizes #4428

jhpalmieri opened this issue May 14, 2015 · 3 comments
Assignees
Milestone

Comments

@jhpalmieri
Copy link

If I add text "$A_-$" to try to print an A with a hyphen as a subscript, some of the time that subscript does not show up. With only this text, it seems to appear if the font size is less than 20, but not if the font size is 20 or larger. It appears if there is more text with another subscript, maybe? I'm not sure what triggers it. Could the subscript be getting clipped off of the bottom?

Here is an example:

import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
ax.axis([0, 6, 0, 6])
ax.text(1, 1, '$A_-$', fontsize=19) # subscript visible
ax.text(1, 2, '$A_-$', fontsize=20) # no subscript
ax.text(1, 3, '$A_-B$', fontsize=20) # no subscript
ax.text(1, 4, '$A_-B_+$', fontsize=20) # subscript visible
@tacaswell tacaswell added this to the next point release milestone May 15, 2015
@tacaswell
Copy link
Member

attn @mdboom

mathtext is getting quite a beating recently.

@mdboom mdboom self-assigned this May 15, 2015
@tacaswell tacaswell modified the milestones: next point release, proposed next point release Jul 11, 2015
@QuLogic
Copy link
Member
QuLogic commented Dec 12, 2016

I believe this is working correctly on v2.x; can you try it out with 2.0.0rc1?

@Kojoley
Copy link
Member
Kojoley commented Dec 28, 2016

2.0.0rc2+2830.gcb89b8b
issue_4428

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

5 participants
0