Revision: 8858 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8858&view=rev Author: jswhit Date: 2010-12-29 18:36:40 +0000 (Wed, 29 Dec 2010)
Log Message: ----------- fix labelling of parallels on right of Hammer map. 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 2010-12-29 18:33:34 UTC (rev 8857) +++ trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py 2010-12-29 18:36:40 UTC (rev 8858) @@ -1934,8 +1934,14 @@ lons,lats = self(xx,yy,inverse=True) lons = lons.tolist(); lats = lats.tolist() else: - lons,lats = self(self.urcrnrx*np.ones(yy.shape,np.float32),yy,inverse=True) - lons = lons.tolist(); lats = lats.tolist() + if self.projection in _pseudocyl: + lats = np.linspace(-89.99,89,99,nmax) + lons = (self.projparams['lon_0']+180.)*np.ones(len(lats),lats.dtype) + xx, yy = self(lons, lats) + else: + xx = self.urcrnrx*np.ones(yy.shape,yy.dtype) + lons,lats = self(xx,yy,inverse=True) + lons = lons.tolist(); lats = lats.tolist() if max(lons) > 1.e20 or max(lats) > 1.e20: raise ValueError,'inverse transformation undefined - please adjust the map projection region' # adjust so 0 <= lons < 360 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins