I am having a problem with imshow and PNG output. The following code can reproduce the problem:
from matplotlib.pyplot import *
import numpy as np
image = np.random.random((100,100))
fig = figure(figsize=(4,4))
ax = fig.add_subplot(111)
If you zoom in to the top of the box, you can see the image poking out of the axes. The effect isn't obvious in this image at normal zoom, but I've seen cases where it is more obvious, for example if the image is quite dark and a white frame is being used, in which case it can look messy.
Is this a bug with the clipping?