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

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

[Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing
Date: Wed, 21 May 2014 00:12:40 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/537.75.14

Follow-up Comment #14, bug #37554 (project octave):

With R2013b I had to define the function unitsratio()

function r = unitsratio (u1, u2)
% USAGE: r = unitsratio (units1, units2)
% Returns the ratio of the values of a length with units1 and units2 
  h = figure ('visible', 'off');
  set (h, 'units', u1)
  p1 = get (h, 'position');
  set (h, 'units', u2)
  p2 = get (h, 'position');
  r = p1(3:4) ./ p2(3:4);
end

Notice that the output gives both the horizontal and vertical ratio (just in
case they were different)

unitsratio('centimeter', 'inches')
ans =
    2.5381    2.5381


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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