[Numpy-discussion] loading and filtering data for matplotlib

Resmi l.resmi@gmail....
Tue Oct 26 13:48:59 CDT 2010

> the vectorized version that should work (minus typos, just written not
> tested)

filt = data['filt']

mask = filt=='SU'


SUx2 = data['x2'][mask]

no loop necessary.

T hanks Josef.
It works as it is.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20101027/cc049b73/attachment.html 

More information about the NumPy-Discussion mailing list