changeset 6450:674d255e0729

[project @ 2007-03-24 12:52:25 by jwe]
author jwe
date Sat, 24 Mar 2007 12:52:25 +0000
parents a5de12c0f968
children fdcb715e381c
files scripts/ChangeLog scripts/plot/legend.m
diffstat 2 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Sat Mar 24 11:12:27 2007 +0000
+++ b/scripts/ChangeLog	Sat Mar 24 12:52:25 2007 +0000
@@ -1,3 +1,7 @@
+2007-03-24  John W. Eaton  <jwe@octave.org>
+
+	* plot/legend.m: Correctly increment index into list of children..
+
 2007-03-23  John W. Eaton  <jwe@octave.org>
 
 	* general/interp2.m, general/bicubic.m, control/base/rldemo.m,
--- a/scripts/plot/legend.m	Sat Mar 24 11:12:27 2007 +0000
+++ b/scripts/plot/legend.m	Sat Mar 24 12:52:25 2007 +0000
@@ -19,8 +19,8 @@
 ## 02110-1301, USA.
 
 ## -*- texinfo -*-
-## @deftypefn {Function File} {} legend (@var{st1}, @var{st2}, @var{st3}, @var{...})
-## @deftypefnx {Function File} {} legend (@var{st1}, @var{st2}, @var{st3}, @var{...}, @var{pos})
+## @deftypefn {Function File} {} legend (@var{st1}, @var{st2}, @dots{})
+## @deftypefnx {Function File} {} legend (@var{st1}, @var{st2}, @dots{}, @var{pos})
 ## @deftypefnx {Function File} {} legend (@var{matstr})
 ## @deftypefnx {Function File} {} legend (@var{matstr}, @var{pos})
 ## @deftypefnx {Function File} {} legend (@var{cell})
@@ -28,9 +28,9 @@
 ## @deftypefnx {Function File} {} legend ('@var{func}')
 ##
 ## Legend puts a legend on the current plot using the specified strings
-## as labels. Use independant strings (@var{st1}, @var{st2}, @var{st3}...), a
+## as labels. Use independant strings (@var{st1}, @var{st2}, @dots{}), a
 ## matrix of strings (@var{matstr}), or a cell array of strings (@var{cell}) to
-## specify legends. Legend works on line graphs, bar graphs, etc...
+## specify legends. Legend works on line graphs, bar graphs, etc.
 ## Be sure to call plot before calling legend.
 ##
 ## @var{pos} optionally  places the legend in the specified location:
@@ -161,6 +161,7 @@
       if (k <= nkids)
 	set (kids(k), "keylabel", arg);
 	turn_on_legend = true;
+	k++;
       elseif (! warned)
 	warned = true;
 	warning ("legend: ignoring extra labels");