diff scripts/plot/__axes_limits__.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 5389a52df87b
children 7d48766c21a5
line wrap: on
line diff
--- a/scripts/plot/__axes_limits__.m
+++ b/scripts/plot/__axes_limits__.m
@@ -32,18 +32,16 @@
     arg = varargin{1};
 
     if (ischar (arg))
-      arg = tolower (arg);
-      if (strcmp ("mode", arg))
-
+      if (strcmpi (arg, "mode"))
 	retval = get (h, fcnmode);
-      elseif (strcmp ("auto", arg) ||  strcmp ("manual", arg))  
+      elseif (strcmpi (arg, "auto") ||  strcmpi (arg, "manual"))
 	set (h, fcnmode, arg);
       endif
     else
       if (!isnumeric (arg) && any (size(arg(:)) != [2, 1]))
 	error ("%s: argument must be a 2 element vector", fcn);
       else
-	set (h, fcn, arg (:));
+	set (h, fcn, arg(:));
       endif
     endif
   endif