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

Fix Angstrom issues #4274

Merged
merged 2 commits into from Apr 12, 2015
Merged

Fix Angstrom issues #4274

merged 2 commits into from Apr 12, 2015

Conversation

mdboom
Copy link
Member

@mdboom mdboom commented Mar 25, 2015

This is a fix for an issue that started in astropy over here: astropy/astropy#3617

The gist of it is that there is no good way to represent an Angstrom symbol (Å) in "pure" LaTeX (meaning no extra packages), mathjax and matplotlib.

The example string $\mathring{A} \stackrel{\circ}{A} \AA$ renders like:

LaTeX:

latex

MathJax:

mathjax

matplotlib (prior to this PR):

matplotlib

With this PR, we add support for the \mathring command, and also fix \AA so it is italic in order to match LaTeX.

matplotlib, this PR, computer modern:

mathtext_cm_68

matplotlib, this PR, STIX:

mathtext_stix_68

matplotlib, this PR, STIX Sans (note that the STIX fonts don't have a sans-serif version of the Angstrom symbol. This isn't really a limitation we can address on the matplotlib side other than by some sort of special casing -- and there's a lot of symbols like that to special case):

mathtext_stixsans_68

@jenshnielsen
Copy link
Member

Looks good to me. Unfortunately it needs a rebase now.

Add support for \mathring.
Make \AA symbol match LaTeX.
tacaswell added a commit that referenced this pull request Apr 12, 2015
FIX : Angstrom symbol rendering
@tacaswell tacaswell merged commit e262edb into matplotlib:master Apr 12, 2015
keflavich added a commit to pyspeckit/pyspeckit that referenced this pull request Jun 6, 2015
@mdboom mdboom deleted the angstrom branch November 9, 2015 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants