matplotlib / matplotlib/pytest-mpl

Stretch for diff image

Open
#202 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
272
Forks
53
PR merge metrics
No merged PRs in 30d

Description

In some cases such as:

https://output.circle-artifacts.com/output/job/65b009f4-252a-490f-a3da-61cb064aa4e0/artifacts/0/results/fig_comparison.html

from https://github.com/astropy/astropy/issues/15029 - the diff doesn't show any changes, but downloading it and stretching it shows a couple of pixels different. I wonder if we could stretch the PNGs to maximize the use of the available dynamic range to make it easier to see what is going on in subtle cases like this?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the linked CircleCI diff from the astropy/astropy issue, then trace pytest-mpl's image-comparison path to find where the PNG diff is generated. Done means subtle pixel differences are visible through the generated diff image without changing the comparison result; the issue names no specific file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.