Skip to content

Commit c87717f

Browse files
committed
Fixed mask check problem by adding ma.nomask to Numeric and Numarray numerix versions.
svn path=/trunk/matplotlib/; revision=1976
1 parent 7cafe0b commit c87717f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/matplotlib/lines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def set_data(self, *args):
276276
mx = ma.getmask(x)
277277
my = ma.getmask(y)
278278
mask = ma.mask_or(mx, my)
279-
if mask is not None:
279+
if mask is not ma.nomask:
280280
x = ma.masked_array(x, mask=mask).compressed()
281281
y = ma.masked_array(y, mask=mask).compressed()
282282
self._segments = unmasked_index_ranges(mask)

lib/matplotlib/numerix/ma/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
if which[0] == "numarray":
44
from numarray.ma import *
5+
nomask = None
56
elif which[0] == "numeric":
67
from MA import *
8+
nomask = None
79
elif which[0] == "numpy":
810
from numpy.core.ma import *
911
else:

0 commit comments

Comments
 (0)