superqt icon indicating copy to clipboard operation
superqt copied to clipboard

Use scientific notification for Labeled sliders values for big/small values

Open Czaki opened this issue 2 years ago • 2 comments

In https://github.com/napari/napari/issues/6522 napari got information that for really small numbers the the labels are unreadable:

obraz

The author of Issue suggests that maybe replacing use of scientific notation for representing small values. It may be also useful for large numbers.

This may be not so trivial as it will require to re implement SliderLabel that may require to use QLabel as base class.

https://github.com/pyapp-kit/superqt/blob/ef876856267ba869daf02dcd590d2d0e01059ec9/src/superqt/sliders/_labeled.py#L575

What did you think?

Czaki avatar Dec 09 '23 18:12 Czaki

yep, i agree it would be way better than the current display!

tlambert03 avatar Dec 09 '23 18:12 tlambert03

Cool! I really like this feature to be implemented. I believe implementing scientific notation in labels for double sliders would be highly beneficial, especially in scientific applications. This enhancement would improve usability and precision for users who work with large or small numerical values. Thank you.

jiban avatar Mar 27 '24 06:03 jiban