Hi Lionel, Thanks for the tips. The histogram plot I need can be done by hist(x). :)
I tried your commands and I like the find() function! However, xi = x[ind] failed with an "IndexError: invalid index". The same operation can be done with xi = array([x[i] for i in ind]) but if a numpy function can do that it may be faster for large arrays. cheers, Ping 2007/9/5, Lionel Roubeyrie <[EMAIL PROTECTED]>: > Hi Ping, > don't know if it could help you : > > from pylab import * > > > d = Table("xyt.dat") > x,y,t = load("xyt.dat", unpack=true) > > > d.plot("x", "t") # make a plot of x vs. t, N points are drawn > plot(t, x) > > > d.plot("x") # make a histogram plot of x, N entries in the histogram > bar(range(len(x)), x) > > > d.plot("x", "y < 3") # make a histogram plot of x where y is less than 3. > ind = find(y < 3) > xi = x[ind] > bar(range(len(xi)), xi) > > Cheers > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users