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
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',