Mercurial > octave-nkf
diff scripts/plot/hist.m @ 7189:e8d953d03f6a
[project @ 2007-11-26 20:42:09 by dbateman]
author | dbateman |
---|---|
date | Mon, 26 Nov 2007 20:42:11 +0000 |
parents | f90a8188c9c2 |
children | b48a21816f2e |
line wrap: on
line diff
--- a/scripts/plot/hist.m Mon Nov 26 20:31:25 2007 +0000 +++ b/scripts/plot/hist.m Mon Nov 26 20:42:11 2007 +0000 @@ -91,6 +91,10 @@ endif endif + ## Avoid issues with integer types for x and y + x = double (x); + y = double (y); + cutoff = (x(1:end-1,:) + x(2:end,:)) / 2; n = rows (x); if (n < 30 && columns (x) == 1)