Skip to content

TST: Use explicit style in all image_comparison calls#31148

Open
QuLogic wants to merge 2 commits intomatplotlib:mainfrom
QuLogic:image-comparison-style
Open

TST: Use explicit style in all image_comparison calls#31148
QuLogic wants to merge 2 commits intomatplotlib:mainfrom
QuLogic:image-comparison-style

Conversation

@QuLogic
Copy link
Member

@QuLogic QuLogic commented Feb 13, 2026

PR summary

This makes it so that future tests must use the new style (or explicitly opt in to the old), and in the future, we may return to a default of that one instead.

I used a libcst transform to add the kwarg in alphabetical order, so some bits of the diff might be suboptimal in their succinctness, but they should be all consistent.

Fixes #24716

This is based on #31137.

PR checklist

If a single extension is being tested, then as a shortcut, it can be
specified in the basename directly. Also, the default for
`check_figures_equal` is to test only `.png` now, so no need to specify
that.
This makes it so that future tests *must* use the new style (or
explicitly opt in to the old), and in the future, we may return to a
default of that one instead.

Fixes matplotlib#24716
@QuLogic QuLogic force-pushed the image-comparison-style branch from 5ac6017 to 85a4a72 Compare February 14, 2026 21: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.

[TST]: Add classic style to all old image tests.

1 participant