Pierre,
The attached script shows how one can make a masked array with different
dimensions for the mask than for the data. I presume this is a bug. It
is triggered by the present code in the matplotlib quiver function.
Eric
import numpy
x = numpy.random.rand(20,1)
xm = numpy.ma.masked_where(x>0.5, x)
y = numpy.array([1,2,3,4], numpy.float64)
a = numpy.array([0,1,1,1])
z = y + a * xm
print z.shape
print z.mask.shape
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion