comparison scripts/plot/__print_parse_opts__.m @ 13018:ca08ddb1c06a stable

__print_parse_opts__.m: Properly convert from cm to pts (bug #34152).
author Ben Abbott <bpabbott@mac.com>
date Sun, 28 Aug 2011 21:17:55 -0400
parents 952e52dda82e
children
comparison
equal deleted inserted replaced
13017:aaf6fbb2512f 13018:ca08ddb1c06a
567 function value = convert2points (value, units) 567 function value = convert2points (value, units)
568 switch (units) 568 switch (units)
569 case "inches" 569 case "inches"
570 value = value * 72; 570 value = value * 72;
571 case "centimeters" 571 case "centimeters"
572 value = value * 72 / 25.4; 572 value = value * 72 / 2.54;
573 case "normalized" 573 case "normalized"
574 error ("print:customnormalized", 574 error ("print:customnormalized",
575 "print.m: papersize=='<custom>' and paperunits='normalized' may not be combined"); 575 "print.m: papersize=='<custom>' and paperunits='normalized' may not be combined");
576 endswitch 576 endswitch
577 endfunction 577 endfunction