Mercurial > octave-nkf
diff scripts/plot/colorbar.m @ 7191:b48a21816f2e
[project @ 2007-11-26 21:24:32 by jwe]
author | jwe |
---|---|
date | Mon, 26 Nov 2007 21:24:33 +0000 |
parents | e8d953d03f6a |
children | a730e47fda4d |
line wrap: on
line diff
--- a/scripts/plot/colorbar.m Mon Nov 26 21:24:02 2007 +0000 +++ b/scripts/plot/colorbar.m Mon Nov 26 21:24:33 2007 +0000 @@ -54,8 +54,8 @@ if (nargin > 0 && strcmpi(varargin{1}, "peer")) if (nargin > 1) ax = varargin{2}; - if (!isscalar (ax) || !ishandle (ax) || - strcmp (get (ax, "type"), "axes")) + if (!isscalar (ax) || ! ishandle (ax) + || strcmp (get (ax, "type"), "axes")) error ("colorbar: expecting an axes handle following 'peer'"); endif else @@ -74,10 +74,10 @@ arg = tolower (arg); if (strcmp (arg, "off") || strcmp (arg, "none")) pos = "none"; - elseif (strcmp (arg, "north") || strcmp (arg, "south") || - strcmp (arg, "east") || strcmp (arg, "west") || - strcmp (arg, "northoutside") || strcmp (arg, "southoutside") || - strcmp (arg, "eastoutside") || strcmp (arg, "westoutside")) + elseif (strcmp (arg, "north") || strcmp (arg, "south") + || strcmp (arg, "east") || strcmp (arg, "west") + || strcmp (arg, "northoutside") || strcmp (arg, "southoutside") + || strcmp (arg, "eastoutside") || strcmp (arg, "westoutside")) pos = arg; else error ("colorbar: unrecognized position argument"); @@ -88,6 +88,7 @@ endfor set (ax, "__colorbar__", pos); + endfunction