From: <js...@us...> - 2009-08-07 14:26:47
|
Revision: 7415 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7415&view=rev Author: jswhit Date: 2009-08-07 14:26:35 +0000 (Fri, 07 Aug 2009) Log Message: ----------- change example in docstrings to use np.loadtxt instead of mlab.load Modified Paths: -------------- trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py Modified: trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py =================================================================== --- trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py 2009-08-07 10:15:04 UTC (rev 7414) +++ trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py 2009-08-07 14:26:35 UTC (rev 7415) @@ -379,11 +379,10 @@ >>> from mpl_toolkits.basemap import Basemap >>> import numpy as np >>> import matplotlib.pyplot as plt - >>> import matplotlib.mlab as mlab >>> # read in topo data (on a regular lat/lon grid) - >>> etopo = mlab.load('etopo20data.gz') - >>> lons = mlab.load('etopo20lons.gz') - >>> lats = mlab.load('etopo20lats.gz') + >>> etopo = np.loadtxt('etopo20data.gz') + >>> lons = np.loadtxt('etopo20lons.gz') + >>> lats = np.loadtxt('etopo20lats.gz') >>> # create Basemap instance for Robinson projection. >>> m = Basemap(projection='robin',lon_0=0.5*(lons[0]+lons[-1])) >>> # compute map projection coordinates for lat/lon grid. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |