[Numpy-discussion] Value selections?
Robert Kern
rkern at ucsd.edu
Mon Apr 25 11:59:03 EDT 2005
Stephen Walton wrote:
> I'm trying out Numeric 24b2. In numarray, the following code will plot
> the values of an array which are not equal to 'flag':
>
> f = array!=flag
> plot(array[f])
>
> What is the equivalent in Numeric 24b2?
compress(f, array) is the lowest common denominator. I'm not sure if
Numeric 24 gets fancier like numarray.
--
Robert Kern
rkern at ucsd.edu
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the NumPy-Discussion
mailing list