Skip to content

Conversation

@Mc-Zen
Copy link
Member

@Mc-Zen Mc-Zen commented Oct 20, 2025

This fixes a rounding issue with the linear tick locator. To compensate issues with degrading floating point precision, the tick distance needs to be rounded. This PR increases the number of digits to round.

This is in order to allow tick distances like 1/3 which would otherwise be rounded to something like 0.33333 only instead of 0.333333333333 leading to serious problems for example with the fractional tick formatter.

@Mc-Zen Mc-Zen merged commit 15666da into main Oct 20, 2025
1 check passed
@Mc-Zen Mc-Zen deleted the fix-linear-tick-locator-rounding branch October 20, 2025 13:28
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.

2 participants