Revision: 4413
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4413&view=rev
Author:   jswhit
Date:     2007-11-21 13:25:27 -0800 (Wed, 21 Nov 2007)

Log Message:
-----------
fix error message

Modified Paths:
--------------
    trunk/toolkits/basemap-testing/lib/matplotlib/toolkits/basemap/basemap.py

Modified: 
trunk/toolkits/basemap-testing/lib/matplotlib/toolkits/basemap/basemap.py
===================================================================
--- trunk/toolkits/basemap-testing/lib/matplotlib/toolkits/basemap/basemap.py   
2007-11-21 20:53:42 UTC (rev 4412)
+++ trunk/toolkits/basemap-testing/lib/matplotlib/toolkits/basemap/basemap.py   
2007-11-21 21:25:27 UTC (rev 4413)
@@ -334,7 +334,7 @@
                 lat_1 = lat_0
                 projparams['lat_1'] = lat_1
             if lat_1 is None or lon_0 is None:
-                raise ValueError('must specify lat_1 or lat_0 and lon_0 for 
%(projection)s basemap (lat_2 is optional)' % _projnames)
+                raise ValueError('must specify lat_1 or lat_0 and lon_0 for %s 
basemap (lat_2 is optional)' % _projnames[projection])
             if lat_2 is None:
                 projparams['lat_2'] = lat_1
             if not using_corners:
@@ -360,7 +360,7 @@
                             'splaea', 'nplaea',
                             'spaeqd', 'npaeqd']:
             if boundinglat is None or lon_0 is None:
-                raise ValueError('must specify boundinglat and lon_0 for 
%(projection) basemap' % _projnames)
+                raise ValueError('must specify boundinglat and lon_0 for %s 
basemap' % _projnames[projection])
             if projection[0] == 's':
                 sgn = -1
             else:
@@ -377,7 +377,7 @@
             lon,self.llcrnrlat = proj(math.sqrt(2.)*y,0.,inverse=True)
             self.urcrnrlat = self.llcrnrlat
             if width is not None or height is not None:
-                print 'warning: width and height keywords ignored for %s 
projection' % self.projection
+                print 'warning: width and height keywords ignored for %s 
projection' % _projnames[projection]
         elif projection == 'laea':
             if lat_0 is None or lon_0 is None:
                 raise ValueError, 'must specify lat_0 and lon_0 for Lambert 
Azimuthal basemap'


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to