Download this file
    
      
        19 lines (13 with data), 374 Bytes
      
      
        |  1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17 | #!/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', aspect='preserve')
 
 #savefig('image_demo3')
 show()
 | 
 
  
                     
                    
                    
                 
            
         
    
      
    
    
    
    
    
        
            ×
        
        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.