Revision: 4484
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4484&view=rev
Author: jswhit
Date: 2007-11-28 07:58:28 -0800 (Wed, 28 Nov 2007)
Log Message:
-----------
more fixes for orthographic
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:50:58 UTC (rev 4483)
+++ trunk/toolkits/basemap/lib/matplotlib/toolkits/basemap/basemap.py
2007-11-28 15:58:28 UTC (rev 4484)
@@ -688,9 +688,10 @@
lon_0=self.projparams['lon_0']
lat_0=self.projparams['lat_0']
re = self.projparams['R']
- # center of stereographic projection restricted
- # to be one of 60 points on the sphere (every 45 deg lat/lon).
- lon0 = 45*(int(lon_0)/45); lat0 = 45*(int(lat_0)/45)
+ # 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)
# boundary polygon for orthographic projection
# in stereographic coorindates.
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