diff scripts/plot/caxis.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 5dd06f19e9be
line wrap: on
line diff
--- a/scripts/plot/caxis.m
+++ b/scripts/plot/caxis.m
@@ -65,10 +65,9 @@
       cmin = cmin(1);
     endif
   elseif (ischar (ax))
-    ax = tolower (ax);
-    if (strcmp (ax, "auto"))
+    if (strcmpi (ax, "auto"))
       set (ca, "climmode", "auto");
-    elseif (strcmp (ax, "manual"))
+    elseif (strcmpi (ax, "manual"))
       set (ca, "climmode", "manual");
     endif
   elseif (isvector (ax))