-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Minor offsetText formatting improvement #4451
Copy link
Copy link
Open
Labels
API: changesChanges to the public API, typically requiring deprecation.Changes to the public API, typically requiring deprecation.New featurekeepItems to be ignored by the “Stale” Github ActionItems to be ignored by the “Stale” Github Action
Milestone
Metadata
Metadata
Assignees
Labels
API: changesChanges to the public API, typically requiring deprecation.Changes to the public API, typically requiring deprecation.New featurekeepItems to be ignored by the “Stale” Github ActionItems to be ignored by the “Stale” Github Action
Type
Fields
Give feedbackNo fields configured for issues without a type.
Currently, the axis offset text is always typeset with the format string "%1.10e" followed by some crazy postprocessing in
ScalarFormatter._formatSciNotation. I would suggest switching to some "%g"-based format, so that e.g. 1234 doesn't get formatted as "1.234e3" which can hardly be described as "more legible". Probably_formatSciNotationcould be simplified a bit too.Simple example:
Edit: the above is now fixed by the switch of axes.formatter.offset_threshold to 4, but the issue remains with
where the offset text should be "12.320" (or at least "12.32"), not "1.232e1".