Mercurial > hg > octave-terminal
changeset 12501:5454b687fd14
colorbar.m: Allow location to be specified as a property.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Sat, 05 Mar 2011 11:17:13 -0500 |
parents | 8f2056646dba |
children | 13640f7f40bb |
files | scripts/ChangeLog scripts/plot/colorbar.m |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2011-03-05 Ben Abbott <bpabbott@mac.com> + + * plot/colorbar.m: Allow location to be specified as a property. + 2010-03-03 Rik <octave@nomad.inbox5.com> * miscellaneous/bunzip2.m, miscellaneous/bzip2.m,
--- a/scripts/plot/colorbar.m +++ b/scripts/plot/colorbar.m @@ -63,7 +63,6 @@ i = 1; while (i <= nargin) arg = varargin {i++}; - if (ischar(arg)) if (strcmpi (arg, "peer")) if (i > nargin) @@ -80,6 +79,8 @@ || strcmpi (arg, "northoutside") || strcmpi (arg, "southoutside") || strcmpi (arg, "eastoutside") || strcmpi (arg, "westoutside")) loc = tolower (arg); + elseif (strcmpi (arg, "location") && i <= nargin) + loc = tolower (varargin{i++}); elseif (strcmpi (arg, "off") || strcmpi (arg, "none")) deleting = true; else