Revision: 6094
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6094&view=rev
Author:   jswhit
Date:     2008-09-14 19:18:54 +0000 (Sun, 14 Sep 2008)

Log Message:
-----------
cosmetic changes

Modified Paths:
--------------
    trunk/toolkits/basemap/examples/randompoints.py

Modified: trunk/toolkits/basemap/examples/randompoints.py
===================================================================
--- trunk/toolkits/basemap/examples/randompoints.py     2008-09-14 15:40:05 UTC 
(rev 6093)
+++ trunk/toolkits/basemap/examples/randompoints.py     2008-09-14 19:18:54 UTC 
(rev 6094)
@@ -10,16 +10,16 @@
 m = Basemap(lon_0=-105,boundinglat=30.,
             resolution='l',area_thresh=10000.,projection='npstere')
 # number of points to plot.
-npts = 750
+npts = 500
 # generate random points on a sphere,
 # so that every small area on the sphere is expected
 # to have the same number of points.
 # http://mathworld.wolfram.com/SpherePointPicking.html
 u = uniform(0.,1.,size=npts)
 v = uniform(0.,1.,size=npts)
-z = uniform(0,100,size=npts)
 lons = 360.*u
 lats = (180./np.pi)*np.arccos(2*v-1) - 90.
+z = uniform(0,100,size=npts) # this field controls color of dots.
 # transform lons and lats to map coordinates.
 x,y = m(lons,lats)
 # plot them as filled circles on the map.


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to