Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates > by-pkgid > dc303dcad9fdd039290b4e78a58ed938 > files > 732

python-matplotlib-0.99.1.2-4.fc13.i686.rpm

#!/usr/bin/env python
from pylab import *

# data are 256x256 16 bit integers
dfile = '../data/s1045.ima'
im = fromstring(file(dfile, 'rb').read(), uint16).astype(float)
im.shape = 256, 256

#imshow(im, ColormapJet(256))
imshow(im, cmap=cm.jet)
axis('off')

show()