# HG changeset patch # User jwe # Date 1174740745 0 # Node ID 674d255e07299dce4dc34478a3aa455cd968e5ba # Parent a5de12c0f9681d60dedbdbf86698cacc7543ebf9 [project @ 2007-03-24 12:52:25 by jwe] diff -r a5de12c0f968 -r 674d255e0729 scripts/ChangeLog --- 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 + + * plot/legend.m: Correctly increment index into list of children.. + 2007-03-23 John W. Eaton * general/interp2.m, general/bicubic.m, control/base/rldemo.m, diff -r a5de12c0f968 -r 674d255e0729 scripts/plot/legend.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");