changeset 4723:ccb4eca28f7e

[project @ 2004-01-23 14:33:26 by jwe]
author jwe
date Fri, 23 Jan 2004 14:33:26 +0000
parents 8f892ca5851d
children bdacd0383fbd
files scripts/ChangeLog scripts/plot/bar.m
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Fri Jan 23 14:22:37 2004 +0000
+++ b/scripts/ChangeLog	Fri Jan 23 14:33:26 2004 +0000
@@ -1,3 +1,8 @@
+2004-01-23  Stefan van der Walt  <stefan@sun.ac.za>
+
+	* plot/bar.m: Increase size of cutoff vector from xlen-1 to xlen
+	so that bar (1, 1) will work.
+
 2004-01-22  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* plot/__errcomm__.m: Cope with nargin now being a function.
--- a/scripts/plot/bar.m	Fri Jan 23 14:22:37 2004 +0000
+++ b/scripts/plot/bar.m	Fri Jan 23 14:33:26 2004 +0000
@@ -75,7 +75,7 @@
       if (xlen == ylen)
         len = 3 * xlen + 1;
         tmp_xb = tmp_yb = zeros (len, 1);
-        cutoff = zeros (1, xlen-1);
+        cutoff = zeros (1, xlen);
         for i = 1:xlen-1
           cutoff(i) = (x(i) + x(i+1)) / 2.0;
         endfor