diff scripts/plot/__patch__.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 263bcc319233
children 7d48766c21a5
line wrap: on
line diff
--- a/scripts/plot/__patch__.m
+++ b/scripts/plot/__patch__.m
@@ -53,22 +53,22 @@
       iarg++;
     endif
   elseif (ischar (varargin{1})
-	  && (strcmp (tolower (varargin{1}), "faces")
-	      || strcmp (tolower (varargin{1}), "vertices")))
+	  && (strcmpi (varargin{1}, "faces")
+	      || strcmpi (varargin{1}, "vertices")))
     if (! isnumeric (varargin{2}))
       fail = true;
       return;
     endif
     
-    if (strcmp (tolower (varargin{1}), "faces"))
+    if (strcmpi (varargin{1}, "faces"))
       faces = varargin{2};
-      if (strcmp (tolower (varargin{3}), "vertices"))
+      if (strcmpi (varargin{3}, "vertices"))
 	vert = varargin{4};
 	have_faces = true;
       endif
-    elseif (strcmp (tolower (varargin{3}), "vertices"))
+    elseif (strcmpi (varargin{3}, "vertices"))
       vert = varargin{2};
-      if (strcmp (tolower (varargin{3}), "faces"))
+      if (strcmpi (varargin{3}, "faces"))
 	faces = varargin{4};
 	have_faces = true;
       endif