Revision: 7009
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7009&view=rev
Author:   jswhit
Date:     2009-03-28 00:59:44 +0000 (Sat, 28 Mar 2009)

Log Message:
-----------
lightsource --> LightSource

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

Modified: trunk/toolkits/basemap/examples/plotmap_shaded.py
===================================================================
--- trunk/toolkits/basemap/examples/plotmap_shaded.py   2009-03-27 21:11:07 UTC 
(rev 7008)
+++ trunk/toolkits/basemap/examples/plotmap_shaded.py   2009-03-28 00:59:44 UTC 
(rev 7009)
@@ -7,7 +7,7 @@
 import numpy as np
 import matplotlib.pyplot as plt
 import matplotlib.mlab as mlab
-from matplotlib.colors import lightsource
+from matplotlib.colors import LightSource
 
 # read in topo data (on a regular lat/lon grid)
 # longitudes go from 20 to 380.
@@ -27,7 +27,7 @@
 nx = int((m.xmax-m.xmin)/40000.)+1; ny = int((m.ymax-m.ymin)/40000.)+1
 topodat,x,y = m.transform_scalar(topoin,lons,lats,nx,ny,returnxy=True)
 # create light source object.
-ls = lightsource(azdeg = 90, altdeg = 20)
+ls = LightSource(azdeg = 90, altdeg = 20)
 # convert data to rgb array including shading from light source.
 # (must specify color map)
 rgb = ls.shade(topodat, plt.cm.jet)


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

------------------------------------------------------------------------------
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to