Revision: 4485
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4485&view=rev
Author: jswhit
Date: 2007-11-28 09:19:16 -0800 (Wed, 28 Nov 2007)
Log Message:
-----------
more orthographic fixes
Modified Paths:
--------------
trunk/toolkits/basemap/lib/matplotlib/toolkits/basemap/basemap.py
Modified: trunk/toolkits/basemap/lib/matplotlib/toolkits/basemap/basemap.py
===================================================================
--- trunk/toolkits/basemap/lib/matplotlib/toolkits/basemap/basemap.py
2007-11-28 15:58:28 UTC (rev 4484)
+++ trunk/toolkits/basemap/lib/matplotlib/toolkits/basemap/basemap.py
2007-11-28 17:19:16 UTC (rev 4485)
@@ -689,10 +689,11 @@
lat_0=self.projparams['lat_0']
re = self.projparams['R']
# center of stereographic projection restricted to be
- # nearest one of 60 points on the sphere (every 45 deg lat/lon).
- lon0 = 45.*(npy.around(lon_0/45.))
- lat0 = 45.*(npy.around(lat_0/45.))
- maptran = pyproj.Proj(proj='stere',lon_0=lon0,lat0=lat_0,R=re)
+ # nearest one of 6 points on the sphere (every 90 deg lat/lon).
+ lon0 = 90.*(npy.around(lon_0/90.))
+ lat0 = 90.*(npy.around(lat_0/90.))
+ if npy.abs(int(lat0)) == 90: lon0=0.
+ maptran = pyproj.Proj(proj='stere',lon_0=lon0,lat_0=lat0,R=re)
# boundary polygon for orthographic projection
# in stereographic coorindates.
b = self._boundarypolyll.boundary
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins