KEMBAR78
line chart: improve major axis for numbers by stephanwlee · Pull Request #5010 · tensorflow/tensorboard · GitHub
Skip to content

Conversation

@stephanwlee
Copy link
Contributor

When the extents are small and is close to 0, we were falling into the
case where major axes were missing and minor axis formats were simply
off. They were supposed to have truncated number but instead had
.…0000535 because we were removing common prefix between "0" and
"0.0000535" and blindly adding in it.

This change addresses the corner case by adding test specs and special
casing major ticks being 0s.

Previous:
image

New:
image

When the extents are small and is close to 0, we were falling into the
case where major axes were missing and minor axis formats were simply
off. They were supposed to have truncated number but instead had
`.…0000535` because we were removing common prefix between "0" and
"0.0000535" and blindly adding `…` in it.

This change addresses the corner case by adding test specs and special
casing major ticks being `0`s.
@google-cla google-cla bot added the cla: yes label May 21, 2021
@stephanwlee stephanwlee requested a review from bmd3k May 21, 2021 22:21
@stephanwlee stephanwlee merged commit 7fb55cd into tensorflow:master May 24, 2021
@stephanwlee stephanwlee deleted the axis branch May 24, 2021 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants