09:43 AM
To
[EMAIL PROTECTED]
cc
matplotlib-users@lists.sourceforge.net,
[EMAIL PROTECTED], Tommy Grav <[EMAIL PROTECTED]>
Subject
Re: [Matplotlib-users] Cumulative histogram
some tweaking...
binWidth = lower_edges[-1]/(len(lower_edges)-1)
[EMAIL PROTECTED]
Sent by: [EMAIL PRO
some tweaking...
binWidth = lower_edges[-1]/(len(lower_edges)-1)
[EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
20/06/2007 09:14 AM
To
Tommy Grav <[EMAIL PROTECTED]>
cc
[EMAIL PROTECTED],
matplotlib-users@lists.sourceforge.net
Subject
Re: [Matplotlib-users] Cumulative histogram
I don't know about easy, but here is a start:
normHist, lower_edges = numpy.histogram(Hlist, bins=100, normed=True)
binWidth = lower_edges[-1]/len(lower_edges)
cumHist = normHist.cumsum()*binWidth
pylab.plot(lower_edges+0.5*binWidth, cumHist)
Needs some tweaking, no doubt.
Tommy Grav <[EMAIL