Mercurial > hg > octave-lojdl
changeset 11926:f7d4376f36d5 release-3-0-x
Fix legend order for both horizontal and vertical string cell.
author | Daniel J Sebald <daniel.sebald@ieee.org> |
---|---|
date | Fri, 16 Jan 2009 08:33:15 +0100 |
parents | e09ae0f2c767 |
children | 5ac4261a8f59 |
files | scripts/ChangeLog scripts/plot/legend.m |
diffstat | 2 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2009-01-16 Daniel J Sebald <daniel.sebald@ieee.org> + + * plot/legend.m: Fix legend order for both horizontal and + vertical string cell. + 2009-01-13 Daniel J Sebald <daniel.sebald@ieee.org> * set/unique.m: Fix for vertical array inputs.
--- a/scripts/plot/legend.m +++ b/scripts/plot/legend.m @@ -148,13 +148,11 @@ nargs = numel (varargin); endif elseif (iscellstr (arg)) - varargin = fliplr (arg); + varargin = arg; nargs = numel (varargin); else error ("legend: expecting argument to be a character string"); endif - else - varargin(1:nargs) = fliplr (varargin(1:nargs)); endif if (nargs > 0) @@ -173,7 +171,7 @@ endif warned = false; - for i = 1:nargs + for i = nargs:-1:1 arg = varargin{i}; if (ischar (arg)) while (k <= nkids