-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
mathtext kerning around comma #5799
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
Milestone
Comments
I agree it should be fixed. Adding the Cc: @zblz due to his recent interest in mathtext. |
"easy" modulo localization :/ (a quick look suggests there's "," -> "{,}", "." -> "{.}" and " " -> ",") |
zblz
added a commit
to zblz/matplotlib
that referenced
this issue
Jan 8, 2016
Fixes matplotlib#5799 Following TeX behaviour: http://www.tex.ac.uk/FAQ-dec_comma.html
zblz
added a commit
to zblz/matplotlib
that referenced
this issue
Jan 8, 2016
Fixes matplotlib#5799 Following TeX behaviour: http://www.tex.ac.uk/FAQ-dec_comma.html
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using a comma as thousands separator in tex, one should wrap it in braces to avoid a spurious space after it (http://www.tex.ac.uk/FAQ-dec_comma.html). See below the difference between


"$1{,}234{,}567"
and"1,234,567$"
withtext.usetext=True
.Unfortunately, mathtext doesn't implement this detail (
text.usetex=False
).(It doesn't look that bad on these zoomed images but I think the difference is more visible if you draw them e.g. using
xlabel
.)(Yes, this qualifies as a major nitpick.)
The text was updated successfully, but these errors were encountered: