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

Add a compact format of scientific notation (new symbol, not a regular 'e') #1071

Closed
IKupriyanov-HORIS opened this issue Apr 1, 2024 · 2 comments
Assignees
Milestone

Comments

@IKupriyanov-HORIS
Copy link
Collaborator

1*10^0 -> 1
1*10^1 -> 10
1*10^2 -> 10^2

@IKupriyanov-HORIS IKupriyanov-HORIS added this to the 2024Q2 milestone Apr 1, 2024
@IKupriyanov-HORIS IKupriyanov-HORIS self-assigned this Apr 1, 2024
@IKupriyanov-HORIS IKupriyanov-HORIS changed the title Make scientific notation format more compact Add a compact format of scientific notation (new symbol, not a regular 'e') Apr 1, 2024
@alshan alshan modified the milestones: 2024Q2, 2024Q3 Jun 30, 2024
@alshan
Copy link
Collaborator

alshan commented Aug 27, 2024

We can cover (1) and (2) by adding settings similar to powerlimits in Matplotlib (and not just powers of 10 in this case).

As for (3), we can support 3rd option for the exponent_format parameter in theme:

  • 'e' - regular "e" notation
  • 'pow' - compact superscript
  • 'pow_full' - superscript without shortening

If, in addition to str, the exponent_format parameter could accept a tuple/array : (format, min_exp, max_exp), that would work IMO.

@alshan
Copy link
Collaborator

alshan commented Oct 23, 2024

Added in v4.5.0

@alshan alshan closed this as completed Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants