Plotting histograms with zero counts

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 0 to 9.

···

--
Yang Zhang
http://www.mit.edu/~y_z/

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 0 to 9.

That's a bug in the current implementation (see also
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503148).

mm

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'd just like 10 bins, from 0 to 9.

That's a bug in the current implementation (see also
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503148).

This is fixed now on the trunk.

mm