Skip to content

Add loongarch64 image comparison tolerances#31940

Open
wszqkzqk wants to merge 1 commit into
matplotlib:mainfrom
wszqkzqk:loong64
Open

Add loongarch64 image comparison tolerances#31940
wszqkzqk wants to merge 1 commit into
matplotlib:mainfrom
wszqkzqk:loong64

Conversation

@wszqkzqk

Copy link
Copy Markdown

PR summary

LoongArch64 Linux produces small rasterization differences compared to the x86_64 baselines, similar to the existing tolerances for macOS and ARM64.

This adds loongarch64 to the platform checks in the 15 image comparison tests that currently fail on LoongArch64.

Each value is reused from the one already used for darwin or aarch64 in the same test.

Verified by running the full matplotlib test suite on real LoongArch64 hardware on Arch Linux for Loong64. (Python 3.14, FreeType 2.13.1)

AI Disclosure

AI was used to help identify the failing tests, analyze the correlation with existing macOS/ARM64 tolerances to reuse the exsting code correctly.

PR checklist

@github-actions

Copy link
Copy Markdown

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks. We also ask that you please finish addressing any review comments on this PR and wait for it to be merged (or closed) before opening a new one, as it can be a valuable learning experience to go through the review process.

You can also join us on discourse chat for real-time discussion.

For details on testing, writing docs, and our review process, please see the developer guide.
Please let us know if (and how) you use AI, it will help us give you better feedback on your PR.

We strive to be a welcoming and open project. Please follow our Code of Conduct.

wszqkzqk added a commit to wszqkzqk/loongarch-packages that referenced this pull request Jun 23, 2026
* Add loongarch64 image comparison tolerances
* See also: matplotlib/matplotlib#31940

Signed-off-by: Zhou Qiankang <wszqkzqk@qq.com>
@oscargus

Copy link
Copy Markdown
Member

Thanks! There are some linting errors. Please run ruff format.

Signed-off-by: Zhou Qiankang <wszqkzqk@qq.com>
@wszqkzqk

Copy link
Copy Markdown
Author

Thanks! There are some linting errors. Please run ruff format.

ruff format will cause huge diff.

According to doc/devel/coding_guide.rst:34-36, I manually fixed it.

@oscargus

Copy link
Copy Markdown
Member

Ahh, right. I usually rely on pre-commit and had forgotten the details... :-)

Looks good!

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