You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
imshow (and friends, e.g., pcolormesh) don't tightly fit the image inside the axes. I suspect an off-by-one error somewhere (see the hint section at the bottom).
There should be no gap between the x axis, and the image.
Matplotlib version
Operating system: linux
Matplotlib version: 3.2.2 (but also later 3.4.0)
Python version: 3.8
Hints
I don't have time to dig into this right now, but it is corrected (for my particular figure size) by subtracting 1 from the y parameter in the draw_image call in the stop_rasterizing definition of backend_mixed.py. I.e., change
Bug report
Bug summary
imshow
(and friends, e.g.,pcolormesh
) don't tightly fit the image inside the axes. I suspect an off-by-one error somewhere (see the hint section at the bottom).Code for reproduction
Actual outcome
gap.pdf
Expected outcome
There should be no gap between the x axis, and the image.
Matplotlib version
Hints
I don't have time to dig into this right now, but it is corrected (for my particular figure size) by subtracting 1 from the
y
parameter in thedraw_image
call in thestop_rasterizing
definition ofbackend_mixed.py
. I.e., changeto
Hopefully that might help someone track this down.
The text was updated successfully, but these errors were encountered: