The hist function expects a list of values that it bins up and counts
to form the histogram (see numpy.hist). That's why it is plotting one
"count" for each of the values you gave it.
You already have your counts, you just want to make a step plot out of
them. Look at the "drawstyle" keyword of th
Andrea Crotti writes:
> values = { (0,10) : 0.5,
> (10, 20) : 0.3 }
> and so on, where the key is a time slot interval and the value is the
> value I want to plot.
>
> What should be the correct way to get what I want?
Something like this perhaps:
left, width = zip(*[(a, b-a) for