[Numpy-discussion] newbie question - summing a list of arrays

Chris Withers chris@simplistix.co...
Tue Mar 18 10:54:49 CDT 2008

Manuel Metz wrote:
> Hm, in this case you can do it like this:
> numpy.sum(numpy.array([numpy.sum(v) for k,v in data.items()]))



...would also work?

I can't actually use that though as the reason I need to do this is part 
of building stacked bar charts in matplotlib.


Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk

More information about the Numpy-discussion mailing list