Revision: 5777
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5777&view=rev
Author:   mdboom
Date:     2008-07-17 18:26:41 +0000 (Thu, 17 Jul 2008)

Log Message:
-----------
Fix non-linear scaling with pcolormesh and non-Agg backends.

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/collections.py

Modified: trunk/matplotlib/lib/matplotlib/collections.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/collections.py      2008-07-17 18:25:20 UTC 
(rev 5776)
+++ trunk/matplotlib/lib/matplotlib/collections.py      2008-07-17 18:26:41 UTC 
(rev 5777)
@@ -10,6 +10,7 @@
 """
 import math, warnings
 import numpy as np
+import numpy.ma as ma
 import matplotlib as mpl
 import matplotlib.cbook as cbook
 import matplotlib.colors as _colors # avoid conflict with kwarg
@@ -468,7 +469,11 @@
         """
         Path = mpath.Path
 
-        c = coordinates
+        if ma.isMaskedArray(coordinates):
+            c = coordinates.data
+        else:
+            c = coordinates
+
         # We could let the Path constructor generate the codes for us,
         # but this is faster, since we know they'll always be the same
         codes = np.array(


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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to