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

Scientific notation on y axis appears when unhelpful #1205

Open
iansf opened this issue May 22, 2018 · 1 comment
Open

Scientific notation on y axis appears when unhelpful #1205

iansf opened this issue May 22, 2018 · 1 comment
Labels
plugin:scalars stat:contributions welcome theme:ui-polish Features or fixes that make core UI more pleasant.

Comments

@iansf
Copy link

iansf commented May 22, 2018

TensorBoard plots switch to scientific notation for 5 digit numbers, which requires more characters to represent, and actually hides relevant precision, as demonstrated in the attached screenshot.

screen shot 2018-05-22 at 11 27 56 am

-1.329e+4 -- 9 characters for 4 digits of precision and sign.
-13290 -- 6 characters for 5 digits of precision and sign.

It seems clear that scientific notation should only be enabled when the range of the plots contains numbers with more digits than would be used with the (less precise) scientific notation representation. In other words, scientific notation should only be used when one or both ends of the range has a magnitude >= 10^(5+desired digits of precision), where the 5 comes from the first digit, the decimal point, and the minimum number of exponent characters, which is 3.

The same basic reasoning also applies to numbers close to 0.

  • TensorBoard version (from pip package, also printed out when running tensorboard)
    TensorBoard 67
  • Python version (e.g. 2.7, 3.5)
    Python 2.7
@nfelt nfelt changed the title TensorBoard plots switch to scientific notation on the y axis too early, which makes plots harder to read. Scientific notation on y axis appears when unhelpful May 22, 2018
@nfelt
Copy link
Contributor

nfelt commented May 22, 2018

Agreed that the scientific notation activates too readily, it should be more conservative.

There's another issue (which I thought had been reported somewhere but couldn't find after a quick search), in that if the absolute scale warrants scientific notation but the actual range of values is very small, then the result is that the y axis labels all are the same (e.g. "1.131e+4" when the actual tick mark values are 11310, 11311, 11312, ...). In that case as well we should perhaps avoid the scientific notation and just make the axis labels take up more room.

@nfelt nfelt added the theme:ui-polish Features or fixes that make core UI more pleasant. label Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin:scalars stat:contributions welcome theme:ui-polish Features or fixes that make core UI more pleasant.
Projects
None yet
Development

No branches or pull requests

2 participants