matplotlib / pytest-mpl

A pytest plugin to facilitate image comparison for Matplotlib figures
Other
240 stars 46 forks source link

Stretch for diff image #202

Open astrofrog opened 1 year ago

astrofrog commented 1 year ago

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?