Download this file
    
      
        19 lines (16 with data), 476 Bytes
      
      
        |  1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18 | #!/usr/bin/env python
 # a polar scatter plot; size increases radially in this example and
 # color increases with angle (just to verify the symbols are being
 # scattered correctlu).  In a real example, this would be wasting
 # dimensionlaity of the plot
 from pylab import *
 
 N = 150
 r = 2*rand(N)
 theta = 2*pi*rand(N) 
 area = 200*r**2*rand(N)
 colors = theta
 ax = subplot(111, polar=True)
 c = scatter(theta, r, c=colors, s=area)
 c.set_alpha(0.75)
 
 #savefig('polar_test2')
 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.