octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #34152] set(gcf, 'papersize', 'centimeters') u


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #34152] set(gcf, 'papersize', 'centimeters') uses milimeters
Date: Mon, 29 Aug 2011 01:09:49 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.215 Safari/535.1

Update of bug #34152 (project octave):

             Assigned to:                    None => bpabbott               

    _______________________________________________________

Follow-up Comment #2:

I have a patch that fixes the problem for me.


diff --git a/scripts/plot/private/__print_parse_opts__.m
b/scripts/plot/private/__print_parse_opts__.m
--- a/scripts/plot/private/__print_parse_opts__.m
+++ b/scripts/plot/private/__print_parse_opts__.m
@@ -570,7 +570,7 @@
     case "inches"
       value = value * 72;
     case "centimeters"
-      value = value * 72 / 25.4;
+      value = value * 72 / 2.54;
     case "normalized"
       error ("print:customnormalized",
              "print.m: papersize=='<custom>' and paperunits='normalized' may
not be combined");


I'll prepare a changeset

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34152>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]