Revision: 7018
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7018&view=rev
Author:   mdboom
Date:     2009-03-31 17:47:27 +0000 (Tue, 31 Mar 2009)

Log Message:
-----------
Fix putmask update -- use np.ma.filled instead.

Modified Paths:
--------------
    branches/v0_98_5_maint/lib/matplotlib/transforms.py

Modified: branches/v0_98_5_maint/lib/matplotlib/transforms.py
===================================================================
--- branches/v0_98_5_maint/lib/matplotlib/transforms.py 2009-03-31 15:23:54 UTC 
(rev 7017)
+++ branches/v0_98_5_maint/lib/matplotlib/transforms.py 2009-03-31 17:47:27 UTC 
(rev 7018)
@@ -974,8 +974,7 @@
     def get_points(self):
         if self._invalid:
             points = self._transform.transform(self._bbox.get_points())
-            if ma.isMaskedArray(points):
-                np.putmask(points, points.mask, 0.0)
+            points = np.ma.filled(points, 0.0)
             self._points = points
             self._invalid = 0
         return self._points


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to