[Matplotlib-users] bins and histograms

2011-03-10 Thread Andrea Crotti
I'm having some troubles understanding basic concepts. Suppose I want to do something like this, given a dictionary 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

Re: [Matplotlib-users] bins and histograms

2011-03-10 Thread Jouni K . Seppänen
Andrea Crotti andrea.crott...@gmail.com 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 =

[Matplotlib-users] bins and histograms

2011-03-10 Thread Andrea Crotti
I'm having some troubles understanding basic concepts. Suppose I want to do something like this, given a dictionary 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

Re: [Matplotlib-users] bins and histograms

2011-03-10 Thread Roban Hultman Kramer
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 the