Logo Search packages:      
Sourcecode: matplotlib version File versions  Download package

image_demo3.py

#!/usr/bin/env python
from pylab import *
try:
    import Image
except ImportError, exc:
    raise SystemExit("PIL must be loaded to run this example")

lena = Image.open('data/lena.jpg')
dpi = rcParams['figure.dpi']
figsize = lena.size[0]/dpi, lena.size[1]/dpi

figure(figsize=figsize)

im = imshow(lena, origin='lower')

#savefig('image_demo3')
show()


Generated by  Doxygen 1.6.0   Back to index