Mercurial > octave-nkf
diff scripts/plot/hold.m @ 8190:73d6b71788c0
use case-insensitive comparison for graphics properties; misc style fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 06 Oct 2008 21:06:05 -0400 |
parents | 8e8afefe9466 |
children | 5cfeb7bc497a |
line wrap: on
line diff
--- a/scripts/plot/hold.m Mon Oct 06 20:39:44 2008 -0400 +++ b/scripts/plot/hold.m Mon Oct 06 21:06:05 2008 -0400 @@ -56,7 +56,7 @@ hold_state = get (h, "nextplot"); if (nargs == 0) - if (strcmp (hold_state, "add")) + if (strcmpi (hold_state, "add")) hold_state = "replace"; else hold_state = "add"; @@ -64,9 +64,9 @@ elseif (nargs == 1) state = varargin{1}; if (ischar (state)) - if (strcmp ("off", state)) + if (strcmpi (state, "off")) hold_state = "replace"; - elseif (strcmp ("on", state)) + elseif (strcmpi (state, "on")) hold_state = "add"; else print_usage ();