Re: [Matplotlib-users] compound conditions with pylab.find

2009-04-01 Thread Eric Firing
Michael Hearne wrote: > Is it possible to use multiple conditionals with the pylab.find() function? > > For example, in Matlab, I can do the following: > > x = rand(1,10); > i = find(x > 0.5 & x < 0.9); %returns the indices between 0.5 and 0.9 > > In Python: (ipython -pylab) > x = rand(1,10) >

Re: [Matplotlib-users] compound conditions with pylab.find

2009-04-01 Thread Jeff Whitaker
Michael Hearne wrote: > Is it possible to use multiple conditionals with the pylab.find() function? > > For example, in Matlab, I can do the following: > > x = rand(1,10); > i = find(x > 0.5 & x < 0.9); %returns the indices between 0.5 and 0.9 > > In Python: (ipython -pylab) > x = rand(1,10) > > No