Mercurial > hg > octave-avbm
changeset 11003:b1cfff739af5
legend.m: Index location cellstr to obtain a string.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Mon, 20 Sep 2010 18:47:52 -0400 |
parents | 2538d03489cc |
children | 594adb99a25e |
files | scripts/ChangeLog scripts/plot/legend.m |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-09-20 Ben Abbott <bpabbott@mac.com> + + * plot/legend.m: Index location cellstr to obtain a string. + 2010-09-19 Ben Abbott <bpabbott@mac.com> * plot/colorbar.m, plot/axis.m,
--- a/scripts/plot/legend.m +++ b/scripts/plot/legend.m @@ -134,8 +134,8 @@ pos = varargin{nargs}; if (isnumeric (pos) && isscalar (pos) && round (pos) == pos) if (pos >= -1 && pos <= 4) - position = {"northeastoutside", "best", "northeast", - "northwest", "southwest", "southeast"} (pos + 2); + position = [{"northeastoutside", "best", "northeast", + "northwest", "southwest", "southeast"}] {pos + 2}; nargs--; else error ("legend: invalid position specified");