Mercurial > hg > octave-nkf
comparison scripts/plot/legend.m @ 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 | 9f45b76c16e3 |
children | d9c8916bb9dd |
comparison
equal
deleted
inserted
replaced
11002:2538d03489cc | 11003:b1cfff739af5 |
---|---|
132 | 132 |
133 if (nargs > 0) | 133 if (nargs > 0) |
134 pos = varargin{nargs}; | 134 pos = varargin{nargs}; |
135 if (isnumeric (pos) && isscalar (pos) && round (pos) == pos) | 135 if (isnumeric (pos) && isscalar (pos) && round (pos) == pos) |
136 if (pos >= -1 && pos <= 4) | 136 if (pos >= -1 && pos <= 4) |
137 position = {"northeastoutside", "best", "northeast", | 137 position = [{"northeastoutside", "best", "northeast", |
138 "northwest", "southwest", "southeast"} (pos + 2); | 138 "northwest", "southwest", "southeast"}] {pos + 2}; |
139 nargs--; | 139 nargs--; |
140 else | 140 else |
141 error ("legend: invalid position specified"); | 141 error ("legend: invalid position specified"); |
142 endif | 142 endif |
143 endif | 143 endif |