Revision: 6130
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6130&view=rev
Author:   jswhit
Date:     2008-09-28 13:29:21 +0000 (Sun, 28 Sep 2008)

Log Message:
-----------
another fix for warpimage and 'cyl'

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 2008-09-28 
13:26:18 UTC (rev 6129)
+++ trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py 2008-09-28 
13:29:21 UTC (rev 6130)
@@ -3194,7 +3194,8 @@
         # bmproj is True if map projection region is same as
         # image region.
         bmproj = self.projection == 'cyl' and \
-                 self.llcrnrlon == -180 and self.urcrnrlon == 180
+                 self.llcrnrlon == -180 and self.urcrnrlon == 180 and \
+                 self.llcrnrlat == -90 and self.urcrnrlat == 90
         # read in jpeg image to rgba array of normalized floats.
         if not hasattr(self,'_bm_rgba') or newfile:
             pilImage = Image.open(self._bm_file)
@@ -3216,7 +3217,7 @@
                 for k in range(3):
                     tmp[:,:,k] = self._bm_rgba
                 self._bm_rgba = tmp
-            if cylproj:
+            if cylproj and not bmproj:
             # stack grids side-by-side (in longitiudinal direction), so
             # any range of longitudes may be plotted on a world map.
                 self._bm_lons = \


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 Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to