Show mpl_imshow.py syntax highlighted
from pylab import *
x = arange(100.0); x.shape = 10,10
im = imshow(x, interpolation='nearest')
colorbar()
savefig('../fig/mpl_image_jet')
im.set_interpolation('bilinear')
hot()
savefig('../fig/mpl_image_hot')
See more files for this project here