From: <js...@us...> - 2009-08-05 16:56:00
|
Revision: 7386 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7386&view=rev Author: jswhit Date: 2009-08-05 16:55:48 +0000 (Wed, 05 Aug 2009) Log Message: ----------- fix bug preventing drawing of parallels in some projections. 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-05 16:30:55 UTC (rev 7385) +++ trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py 2009-08-05 16:55:48 UTC (rev 7386) @@ -1789,8 +1789,7 @@ yd = (y[1:]-y[0:-1])**2 dist = np.sqrt(xd+yd) split = dist > 500000. - if np.sum(split) and self.projection not in \ - ['cyl', 'merc', 'mill', 'gall', 'moll', 'robin', 'sinu', 'mbtfpq']: + if np.sum(split) and self.projection not in _cylproj: ind = (np.compress(split,np.squeeze(split*np.indices(xd.shape)))+1).tolist() xl = [] yl = [] @@ -2028,7 +2027,7 @@ yd = (y[1:]-y[0:-1])**2 dist = np.sqrt(xd+yd) split = dist > 500000. - if np.sum(split) and self.projection not in _cylproj + _pseudocyl: + if np.sum(split) and self.projection not in _cylproj: ind = (np.compress(split,np.squeeze(split*np.indices(xd.shape)))+1).tolist() xl = [] yl = [] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |