Re: [Numpy-discussion] Re : [Newbie] Fast plotting

2009-01-06 Thread John Hunter
On Tue, Jan 6, 2009 at 7:38 AM, Jean-Baptiste Rudant wrote: > Hello, > I'm not an expert. Something exists in matplotlib, but it's not very > efficient. > import matplotlib.mlab > import numpy > N = 1000 > X = numpy.random.randint(0, 10, N) > Y = numpy.random.random(N) > recXY = numpy.rec.fromarr

[Numpy-discussion] Re : [Newbie] Fast plotting

2009-01-06 Thread Jean-Baptiste Rudant
Hello, I'm not an expert. Something exists in matplotlib, but it's not very efficient. import matplotlib.mlab import numpy N = 1000 X = numpy.random.randint(0, 10, N) Y = numpy.random.random(N) recXY = numpy.rec.fromarrays((X, Y), names='x, y') summary = matplotlib..mlab.rec_groupby(recXY, ('x',