Replace fixed-point with exact notation in Matrix and Compound vis #1753
+24
−44
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As discussed in #1646 (comment). Keeping the issue open until I address the formatting of numbers in the visualizations' tooltips.
This should also address the user need of #1742 in a more usable way than the solution proposed of adding a control to the toolbar to increase the fixed point precision.
While I'm at it, I bring the formatting of complex numbers in line with the formatting of other numbers. We were so far using formatters with less precision to save space in the Matrix vis, but I think consistency should prime.
Here is a more precise list of user-facing changes:
< Scalar >
Display complex numbers with exact precision< Scalar >
Always show both real and imaginary parts of complex numbers to avoid confusing complex numbers without imaginary parts with real numbers — this applies also when inspecting values of complex attributes in the metadata viewer< Matrix >
Replace Fixed-point notation with Exact notation to allow inspecting and copying exact values< Matrix >
Inherit integer and/or float formatting for complex numbers in Auto and Scientific notations (depending on dtype of real and imaginary parts) — concretely, complex numbers are now displayed with more precision regardless of the notation.