Mercurial > hg > octave-terminal
changeset 8427:26b899d309f6
help and error string corrected in hist.m.
author | Francesco Potortì <pot@gnu.org> |
---|---|
date | Fri, 26 Dec 2008 22:16:27 +0100 |
parents | 7523742aa026 |
children | ee1bc8aa226b |
files | scripts/ChangeLog scripts/plot/hist.m |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2008-12-26 Francesco Potortì <pot@gnu.org> + + * plot/hist.m: Doc string now mentions matrix input argument. + Correct error message. + 2008-12-24 Doug Stewart <dastew@sympatico.ca> * plot/grid.m: Handle "minor" option.
--- a/scripts/plot/hist.m +++ b/scripts/plot/hist.m @@ -23,7 +23,8 @@ ## ## With one vector input argument, plot a histogram of the values with ## 10 bins. The range of the histogram bins is determined by the range -## of the data. +## of the data. With one matrix input argument, plot a hystogram where +## each bin contains a bar per input column. ## ## Given a second scalar argument, use that as the number of bins. ## @@ -59,7 +60,7 @@ max_val = max (y(:)); min_val = min (y(:)); else - error ("hist: first argument must be a vector"); + error ("hist: first argument must be real valued"); endif iarg = 1;