Re: [Matplotlib-users] Plotting histograms with zero counts

2008-12-01 Thread Manuel Metz
Manuel Metz wrote: > Yang Zhang wrote: >> Hi, when I do: >> >>hist([0,0,0], bins=10, range=(0,10)) >> >> How come the single bin takes up the entire plot? Same with just two >> values, or anything less than 10 - the two bars take up the entire plot, >> no matter what I plug in for range. I'

Re: [Matplotlib-users] Plotting histograms with zero counts

2008-12-01 Thread Manuel Metz
Yang Zhang wrote: > Hi, when I do: > >hist([0,0,0], bins=10, range=(0,10)) > > How come the single bin takes up the entire plot? Same with just two > values, or anything less than 10 - the two bars take up the entire plot, > no matter what I plug in for range. I'd just like 10 bins, from