lets-plot icon indicating copy to clipboard operation
lets-plot copied to clipboard

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

Open IKupriyanov-HORIS opened this issue 1 year ago • 1 comments

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

IKupriyanov-HORIS avatar Apr 01 '24 21:04 IKupriyanov-HORIS

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 avatar Aug 27 '24 21:08 alshan

Added in v4.5.0

alshan avatar Oct 23 '24 20:10 alshan