Mercurial > hg > octave-lyh
comparison scripts/plot/private/__print_parse_opts__.m @ 17182:c3c1ebfaa7dc
maint: Use common indentation for switch statement.
* scripts/general/interp1.m, scripts/geometry/delaunay.m,
scripts/help/__unimplemented__.m, scripts/image/cmunique.m,
scripts/miscellaneous/edit.m, scripts/optimization/fzero.m,
scripts/optimization/sqp.m, scripts/plot/__gnuplot_drawnow__.m,
scripts/plot/hidden.m, scripts/plot/legend.m, scripts/plot/print.m,
scripts/plot/printd.m, scripts/plot/private/__contour__.m,
scripts/plot/private/__fltk_print__.m,
scripts/plot/private/__gnuplot_print__.m,
scripts/plot/private/__go_draw_axes__.m,
scripts/plot/private/__print_parse_opts__.m, scripts/signal/periodogram.m,
scripts/sparse/bicg.m, test/slice.tst, test/switch.tst:
Use common indentation for switch statement.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 04 Aug 2013 15:11:34 -0700 |
parents | d4ce14c19c2c |
children | 50794f5e2323 |
comparison
equal
deleted
inserted
replaced
17181:3a23cbde59d5 | 17182:c3c1ebfaa7dc |
---|---|
577 ## For portrait use the ghostscript name | 577 ## For portrait use the ghostscript name |
578 papersize = papertype; | 578 papersize = papertype; |
579 papersize(papersize=="-") = ""; | 579 papersize(papersize=="-") = ""; |
580 papersize = strrep (papersize, "us", ""); | 580 papersize = strrep (papersize, "us", ""); |
581 switch (papersize) | 581 switch (papersize) |
582 case "a" | 582 case "a" |
583 papersize = "letter"; | 583 papersize = "letter"; |
584 case {"b", "tabloid"} | 584 case {"b", "tabloid"} |
585 papersize = "11x17"; | 585 papersize = "11x17"; |
586 case {"c", "d", "e"} | 586 case {"c", "d", "e"} |
587 papersize = strcat ("arch", papersize); | 587 papersize = strcat ("arch", papersize); |
588 endswitch | 588 endswitch |
589 if (strncmp (papersize, "arch", 4)) | 589 if (strncmp (papersize, "arch", 4)) |
590 papersize(end) = upper (papersize(end)); | 590 papersize(end) = upper (papersize(end)); |
591 endif | 591 endif |
592 endif | 592 endif |
593 | 593 |
594 endfunction | 594 endfunction |
595 | 595 |
596 function value = convert2points (value, units) | 596 function value = convert2points (value, units) |
597 switch (units) | 597 switch (units) |
598 case "inches" | 598 case "inches" |
599 value = value * 72; | 599 value = value * 72; |
600 case "centimeters" | 600 case "centimeters" |
601 value = value * 72 / 2.54; | 601 value = value * 72 / 2.54; |
602 case "normalized" | 602 case "normalized" |
603 error ("print:customnormalized", | 603 error ("print:customnormalized", |
604 "print.m: papersize=='<custom>' and paperunits='normalized' may not be combined"); | 604 "print.m: papersize=='<custom>' and paperunits='normalized' may not be combined"); |
605 endswitch | 605 endswitch |
606 endfunction | 606 endfunction |
607 | 607 |
608 function device_list = gs_device_list (); | 608 function device_list = gs_device_list (); |
609 ## Graphics formats/languages, not priners. | 609 ## Graphics formats/languages, not priners. |
610 device_list = {"bmp16"; "bmp16m"; "bmp256"; "bmp32b"; "bmpgray"; ... | 610 device_list = {"bmp16"; "bmp16m"; "bmp256"; "bmp32b"; "bmpgray"; ... |