8000 Disable clipping in Agg resamplers. by anntzer · Pull Request #28122 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Disable clipping in Agg resamplers. #28122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2024
Merged

Conversation

anntzer
Copy link
Contributor
@anntzer anntzer commented Apr 23, 2024

I chose to add macro guards directly in the agg source as that seemed easier than copy-pasting the whole code.

I chose to bump the tolerance on test_rgba_antialias (as that's also getting bumped by the interpolation_stage antialias PR) and to test_pngsuite (which is not particularly relevant), and to update the other baselines.

PR summary

PR checklist

@anntzer anntzer 8000 added the topic: images label Apr 23, 2024
@anntzer anntzer added this to the v3.10.0 milestone Apr 23, 2024
@greglucas
Copy link
Contributor

Wow, this looks like a really nice simplification and should fix some of the high dynamic range issues where we ran into problems around the 0.1/0.9 floating point representation creating incorrect under/over values.

Is this waiting on #28061 ?

@anntzer
Copy link
Contributor Author
anntzer commented Jul 8, 2024

Apologies for the slow reply, I have basically no time to work on this these days (just a temporary thing).
I think this is actually fairly independent of #28061 (the rebase seems to work directly except for the fact that both PRs bump the tolerance on the same test), so they can probably(?) be merged in either order, except perhaps(?) if one wants to optimize baseline image weight in the git history?
If #28061 gets merged first, feel free to push a rebase of this PR to get it in if I don't do it quickly.

@timhoffm
Copy link
Member
timhoffm commented Jul 8, 2024

TBH, I've not followed the relation with #28061, so I'm not clear whether we can just merge or whether we should wait. The change itself is good to go.

Copy link
Member
@jklymak jklymak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is likely correct and certainly doesn't need to wait on #28061. But maybe @tacaswell should weigh in as the previous method was his.

I chose to add macro guards directly in the agg source as that seemed
easier than copy-pasting the whole code.

I chose to bump the tolerance on test_rgba_antialias (as that's
also getting bumped by the interpolation_stage antialias PR) and to
test_pngsuite (which is not particularly relevant), and to update the
other baselines.
@greglucas greglucas merged commit 24c3f1a into matplotlib:main Jul 22, 2024
39 of 41 checks passed
@anntzer anntzer deleted the aggunclip branch July 22, 2024 17:13
@tacaswell
Copy link
Member

Thank you for getting this done!

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.

5 participants
0