-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Inline ScalarFormatter._formatSciNotation. #18506
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
Conversation
The doc error looks real to me... |
It's only used in one place, in a tiny function, and doesn't have a particularly intuitive name, so it's actually easier to follow the logic by having it all in one place. Moreover the implementation can be greatly simplified by separately computing and formatting the mantissa and the exponent, rather than trying to parse the locale-dependent result of the formatting of the entire number.
Fix regression in 3.4.0 introduced by b5fb685 (matplotlib#18506).
Fix regression in 3.4.0 introduced by b5fb685 (matplotlib#18506).
Hello, |
@vpicouet please ask usage questions at discourse.matplotlib.org. However this is as a private method so it was not meant to be used by downstream users. You could look at the source and copy it. |
It's only used in one place, in a tiny function, and doesn't have a
particularly intuitive name, so it's actually easier to follow the logic
by having it all in one place. Moreover the implementation can be
greatly simplified by separately computing and formatting the mantissa
and the exponent, rather than trying to parse the locale-dependent
result of the formatting of the entire number.
PR Summary
PR Checklist
pytest
passes).flake8
on changed files to check).flake8-docstrings
andpydocstyle<4
and runflake8 --docstring-convention=all
).doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).