|
From: Daπid <dav...@gm...> - 2012-07-28 00:42:05
|
On Sat, Jul 28, 2012 at 12:22 AM, surfcast23 <sur...@gm...> wrote: > Am I reading (bins[1]-bins[0]) correctly as taking the difference between > what is in the second and first bin? Yes. I am multipliying the width of the bins by their total height. Surely there are cleaner and more general ways (say, when the bins are of different width), but this one does the trick for most cases. And, if you have many data points, you can increase the number of bins (typically the square root of the number of points, if you have enough density) and get a more precise profile. In that case you would want to change the parameter of hist histype='stepfilled' |