diff scripts/plot/shading.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 4024fc815f8d
children 5dd06f19e9be
line wrap: on
line diff
--- a/scripts/plot/shading.m
+++ b/scripts/plot/shading.m
@@ -59,13 +59,13 @@
 
   for n = 1:numel(obj)
     h = obj(n); 
-    if (strcmp (mode, "flat"))
+    if (strcmpi (mode, "flat"))
       set (h, "facecolor", "flat");
       set (h, "edgecolor", "none");
-    elseif (strcmp (mode, "interp"))
+    elseif (strcmpi (mode, "interp"))
       set (h, "facecolor", "interp");
       set (h, "edgecolor", "none");
-    elseif (strcmp (mode, "faceted"))
+    elseif (strcmpi (mode, "faceted"))
       set (h, "facecolor", "flat");
       set (h, "edgecolor", [0 0 0]);
     else