Menu

[r8866]: / trunk / course / examples / mpl_imshow.py  Maximize  Restore  History

Download this file

10 lines (8 with data), 210 Bytes

1
2
3
4
5
6
7
8
9
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')
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.