Revision: 8075 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8075&view=rev Author: jswhit Date: 2010-01-11 12:28:15 +0000 (Mon, 11 Jan 2010)
Log Message: ----------- infer lat_0 from ymin,ymax if necessary 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-01-04 22:58:43 UTC (rev 8074) +++ trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py 2010-01-11 12:28:15 UTC (rev 8075) @@ -775,6 +775,10 @@ self.lonmax = lons.max() NPole = _geoslib.Point(self(0.,90.)) SPole = _geoslib.Point(self(0.,-90.)) + if lat_0 is None: + lon_0, lat_0 =\ + self(0.5*(self.xmin+self.xmax), + 0.5*(self.ymin+self.ymax),inverse=True) Dateline = _geoslib.Point(self(180.,lat_0)) Greenwich = _geoslib.Point(self(0.,lat_0)) hasNP = NPole.within(self._boundarypolyxy) 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 the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins