When using imshow() with a small array (large pixels), the pixel patches can end up slightly misaligned. This becomes especially obvious when thin grid lines are overlaid on the figure.
Based on my investigation so far, the problem in your example is indeed distinct from the original issue, and it is very important to fix. It's not a bug internal to the image-resampling code, but rather it has to do with how image placement affects what resampling is requested and how the resampled image is drawn.
Operating system
Debian
Matplotlib Version
3.11.0.dev1652+gddd4196c7 (but first found around 3.3.0)
changed the title [-][Bug]: Large pixels may be misaligned when using imshow()[/-][+][Bug]: Large pixels may overlap when using imshow()[/+]on Jan 21, 2026
Activity