Skip to content

[TST] Pin matplotlib for image tests and regenerate baselines - #542

Closed
steps-re wants to merge 2 commits into
CORE-GATECH-GROUP:mainfrom
steps-re:fix/pin-mpl-regenerate-baselines
Closed

steps-re wants to merge 2 commits into
CORE-GATECH-GROUP:mainfrom
steps-re:fix/pin-mpl-regenerate-baselines

Conversation

@steps-re

Copy link
Copy Markdown
Contributor

Closes #541. Per @drewejohnson's call there, this pins matplotlib to 3.9.4 in the test extra and regenerates all 11 baseline PNGs under tests/plots/result_images with that exact version (pytest tests/plots --update). 3.9.4 is the newest matplotlib with wheels for the full supported Python range (3.9 to 3.13), and CI already installs the test extra, so no workflow changes are needed.

The plot suite passes against the new baselines at --plot-tolerance 0, and the full suite is green locally (356 passed, tested with numpy<2 pending #540). Prepared with LLM assistance (Claude), reviewed and tested by me.

steps-re and others added 2 commits July 27, 2026 22:43
Image-comparison baselines only match the renderer they were generated
with. Pin matplotlib in the test extra (installed by CI) so runners and
baselines stay in sync. 3.9.4 is the newest release with wheels for the
full supported Python range (3.9-3.13).

Refs CORE-GATECH-GROUP#541

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Regenerated all 11 baseline PNGs under tests/plots/result_images with
the pinned matplotlib via pytest tests/plots --update. Suite passes
against the new baselines at --plot-tolerance 0.

Refs CORE-GATECH-GROUP#541

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@drewejohnson

Copy link
Copy Markdown
Collaborator

I am not interested in introducing AI-generated contributions. We do not have an LLM policy but maybe we should now that it's spread to our corner.

@steps-re

Copy link
Copy Markdown
Contributor Author

Totally fair.

I'll close this out. The matplotlib pin and baseline regen were your idea in #541 anyway.

Thanks for taking the time to look at these. I'll leave you to it going forward.

@steps-re steps-re closed this Jul 31, 2026
@drewejohnson

Copy link
Copy Markdown
Collaborator

Thank you for understanding @steps-re. I'll have the PR up this weekend

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.

Image-comparison tests fail on current matplotlib (baseline PNG drift)

2 participants