|
From: <lee...@us...> - 2009-08-05 19:12:46
|
Revision: 7393
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7393&view=rev
Author: leejjoon
Date: 2009-08-05 19:12:38 +0000 (Wed, 05 Aug 2009)
Log Message:
-----------
fix typo in axes_divider.py. use nanmin, nanmax in angle_helper.py (patch by Christoph Gohlke)
Modified Paths:
--------------
branches/v0_99_maint/lib/mpl_toolkits/axes_grid/angle_helper.py
branches/v0_99_maint/lib/mpl_toolkits/axes_grid/axes_divider.py
Modified: branches/v0_99_maint/lib/mpl_toolkits/axes_grid/angle_helper.py
===================================================================
--- branches/v0_99_maint/lib/mpl_toolkits/axes_grid/angle_helper.py 2009-08-05 17:59:12 UTC (rev 7392)
+++ branches/v0_99_maint/lib/mpl_toolkits/axes_grid/angle_helper.py 2009-08-05 19:12:38 UTC (rev 7393)
@@ -293,14 +293,14 @@
# iron out jumps, but algorithm should be improved.
# Tis is just naive way of doing and my fail for some cases.
if self.lon_cycle is not None:
- lon0 = lon.min()
+ lon0 = np.nanmin(lon)
lon -= 360. * ((lon - lon0) > 180.)
if self.lat_cycle is not None:
- lat0 = lat.min()
+ lat0 = np.nanmin(lat)
lat -= 360. * ((lat - lat0) > 180.)
- lon_min, lon_max = lon.min(), lon.max()
- lat_min, lat_max = lat.min(), lat.max()
+ lon_min, lon_max = np.nanmin(lon), np.nanmax(lon)
+ lat_min, lat_max = np.nanmin(lat), np.nanmax(lat)
lon_min, lon_max, lat_min, lat_max = \
self._adjust_extremes(lon_min, lon_max, lat_min, lat_max)
Modified: branches/v0_99_maint/lib/mpl_toolkits/axes_grid/axes_divider.py
===================================================================
--- branches/v0_99_maint/lib/mpl_toolkits/axes_grid/axes_divider.py 2009-08-05 17:59:12 UTC (rev 7392)
+++ branches/v0_99_maint/lib/mpl_toolkits/axes_grid/axes_divider.py 2009-08-05 19:12:38 UTC (rev 7393)
@@ -544,7 +544,7 @@
def apply_aspect(self, position=None):
if self.get_axes_locator() is None:
- self._axes_class.apply_apsect(self, position)
+ self._axes_class.apply_aspect(self, position)
else:
pos = self.get_axes_locator()(self, self._locator_renderer)
self._axes_class.apply_aspect(self, position=pos)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|