forked from tensorflow/tensorboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fix: Use Standard ticks when dealing with scientific notation (te…
…nsorflow#6247) * Motivation for features / changes When the differences between the max and min points on an axis are very small we use some special logic to make the axis tick marks more readable. However, this logic assumes the numbers to be decimal and gives NaN values when the numbers take on scientific notation. Fortunately more times scientific notation is used the number become small enough to use regular tick marks. This change simply reverts back to standard tick marks whenever javascript starts using scientific notation. * Screenshots of UI changes Before: <img width="90" alt="Screenshot 2023-03-16 at 9 37 26 PM" src="https://user-images.githubusercontent.com/8672809/225814036-3b622a9c-bc63-47c4-ad09-6eea1b5cf727.png"> After: <img width="72" alt="Screenshot 2023-03-16 at 9 39 40 PM" src="https://user-images.githubusercontent.com/8672809/225814092-48faa8e8-11c8-4ba5-a27f-648dacae75d7.png">
- Loading branch information
1 parent
eaa8353
commit afd50e2
Showing
2 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters