Hi,
I've found a bug in imread which causes images in PNG and JPEG format to be flipped when using imshow. For example,
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(1,2,1)
image = plt.imread('2mass_rgb.png')
ax.imshow(image, origin='upper', extent=[0.5,723.5,0.5,724.5])
ax = fig.add_subplot(1,2,2)
image = plt.imread('2mass_rgb.jpg')
ax.imshow(image, origin='upper', extent=[0.5,723.5,0.5,724.5])
fig.savefig('rgb.png')
The input and output files can be found at https://www.dropbox.com/s/96npxuglpkd7y1u
I have submitted a bug report at https://github.com/matplotlib/matplotlib/issues/101
Thanks for any help,
Cheers,
Tom