Hello,

I am having a problem with imshow and PNG output. The following code  
can reproduce the problem:

---

import matplotlib
matplotlib.use('Agg')
from matplotlib.pyplot import *

import numpy as np

image = np.random.random((100,100))

fig = figure(figsize=(4,4))
ax = fig.add_subplot(111)
ax.imshow(image,interpolation='nearest')
fig.savefig('plot.png',dpi=150)

---

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?

Thanks,

Thomas

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to