Skip to content

[gaxis] do not paint (sometime) first and last tick twice#20129

Merged
linev merged 2 commits intoroot-project:masterfrom
linev:fix_tgaxis_tick
Oct 17, 2025
Merged

[gaxis] do not paint (sometime) first and last tick twice#20129
linev merged 2 commits intoroot-project:masterfrom
linev:fix_tgaxis_tick

Conversation

@linev
Copy link
Copy Markdown
Member

@linev linev commented Oct 17, 2025

If position of first or last major tick does not match exactly visible axis range,
first and last ticks were painted extra again.
While such visible range matching can suffer from float arithmetic uncertainty,
on some platforms extra ticks were painted and on others not.
This is actually main reason for variation of PS file sizes on different platforms in stressGraphics.

Now simply do not paint first and last tick again.

Adjust ref files for tests

linev added 2 commits October 17, 2025 09:59
If position of first or last tick does not match exactly visible axis range, extra first and extra last tick was painted.
While such matching can suffer from float arithmetic uncertanty,
on some platforms extra ticks was painted and on others not.
This was actually main reason for light variation of PS file size on different platforms.

Now simply do not paint first and last tick again in no case.
In stressGraphics created PS files are smaller
And roottest/root/treedraw/hsimple.ps.ref also removes that extra tick
@github-actions
Copy link
Copy Markdown

Test Results

    21 files      21 suites   3d 18h 17m 56s ⏱️
 3 692 tests  3 685 ✅ 0 💤  7 ❌
75 672 runs  75 661 ✅ 0 💤 11 ❌

For more details on these failures, see this check.

Results for commit ec42e64.

@linev linev merged commit e5a6879 into root-project:master Oct 17, 2025
20 of 31 checks passed
@linev linev deleted the fix_tgaxis_tick branch October 17, 2025 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants