diff scripts/plot/__print_parse_opts__.m @ 11120:a44f979a35ce

style fixes for some .m files
author John W. Eaton <jwe@octave.org>
date Wed, 20 Oct 2010 20:49:17 -0400
parents a8ac114ec9ab
children 093c9facf0f0
line wrap: on
line diff
--- a/scripts/plot/__print_parse_opts__.m
+++ b/scripts/plot/__print_parse_opts__.m
@@ -542,7 +542,7 @@
     papersize = papertype;
     papersize(papersize=="-") = "";
     papersize = strrep (papersize, "us", "");
-    switch papersize
+    switch (papersize)
     case "a"
       papersize = "letter";
     case {"b", "tabloid"}
@@ -558,12 +558,12 @@
 endfunction
 
 function value = convert2points (value, units)
-    switch units
-    case {"inches"}
+    switch (units)
+    case "inches"
       value = value * 72;
-    case {"centimeters"}
+    case "centimeters"
       value = value * 72 / 25.4;
-    case {"normalized"}
+    case "normalized"
       error ("print:customnormalized",
              "print.m: papersize=='<custom>' and paperunits='normalized' may not be combined.")
     endswitch