Skip to content

Colorbar tick fontsize reduction and scientific notation consistency#245

Closed
Jammy2211 wants to merge 1 commit intomainfrom
feature/colorbar-tick-fontsize-and-notation
Closed

Colorbar tick fontsize reduction and scientific notation consistency#245
Jammy2211 wants to merge 1 commit intomainfrom
feature/colorbar-tick-fontsize-and-notation

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

  • Reduce default colorbar tick label fontsize from 22 → 18 for both single-figure and subplot contexts
  • Add _to_scientific() helper that converts a float to Unicode superscript scientific notation (e.g. 4.3×10⁴) without LaTeX
  • Fix colorbar notation inconsistency bug: when outer ticks show ×10 notation, the central tick was left in plain decimal (e.g. −5000.00 vs −2×10⁴). Now all non-zero ticks are normalised to the same notation

Test plan

  • Confirm pre-existing test failure (test__inversion_subplot_of_mapper__is_output_for_all_inversions) is unrelated — fails on clean main too
  • Run python -m pytest test_autoarray/ -x -q and confirm no new failures introduced
  • Visually inspect a colorbar spanning zero to confirm all three ticks use consistent notation

🤖 Generated with Claude Code

- Reduce default colorbar tick labelsize from 22 → 18 (both single-figure and subplot)
- Add _to_scientific() helper for Unicode ×10 notation (e.g. 4.3×10⁴)
- Fix colorbar tick notation inconsistency: when any tick uses ×10 notation,
  all non-zero ticks are normalised to the same notation so the central tick
  never shows plain decimal while outer ticks show scientific

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Jammy2211 Jammy2211 closed this Apr 2, 2026
@Jammy2211 Jammy2211 deleted the feature/colorbar-tick-fontsize-and-notation branch April 2, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant