diff scripts/plot/hist.m @ 6582:cb3f6d51b7b3

[project @ 2007-04-25 23:06:28 by dbateman]
author dbateman
date Wed, 25 Apr 2007 23:06:28 +0000
parents 34f96dd5441b
children e4ea529efab0
line wrap: on
line diff
--- a/scripts/plot/hist.m
+++ b/scripts/plot/hist.m
@@ -118,7 +118,7 @@
     freq = freq / rows (y) * norm;
   endif
 
-  if (nargout > 0)
+  if (nargout > 1)
     if (arg_is_vector)
       nn = freq';
       xx = x';
@@ -126,8 +126,10 @@
       nn = freq;
       xx = x;
     endif
+  elseif (nargout == 1)
+    nn = bar (x, freq, 1.0);
   else
-    bar (x, freq);
+    bar (x, freq, 1.0);
   endif
 
 endfunction