[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored
From: |
Michael Godfrey |
Subject: |
[Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing |
Date: |
Sun, 25 May 2014 17:28:55 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 |
Follow-up Comment #36, bug #37554 (project octave):
Pantxo:
I just ran the test, changing the 20* to 1*
What I found is that the test fails on the first 1*
%! hf = figure ("visible", "off");
%! unwind_protect
%! ## paperpositionmode "auto" converts figure size to paper units
%! set (hf, "units", "inches");
%! set (hf, "position", [0 0 4 5]);
%! set (hf, "paperunits", "centimeters");
%! psz = get (hf, "papersize");
%! fsz = [10.16 12.7];
%! pos = [(psz/2 .- fsz/2) fsz];
%! set (hf, "paperpositionmode", "auto");
%! assert (get (hf, "paperposition"), pos, eps)
and then skips the rest of the tests.
So, all 4 of the following tests fail:
%! ## paperpositionmode "auto" converts figure size to paper units
%! set (hf, "units", "inches");
%! set (hf, "position", [0 0 4 5]);
%! set (hf, "paperunits", "centimeters");
%! psz = get (hf, "papersize");
%! fsz = [10.16 12.7];
%! pos = [(psz/2 .- fsz/2) fsz];
%! set (hf, "paperpositionmode", "auto");
%! assert (get (hf, "paperposition"), pos, eps)
%!
%! ## likewise with normalized units
%! set (hf, "paperunits", "normalized");
%! fsz = [10.16 12.7]./psz;
%! pos = [([0.5 0.5] .- fsz/2) fsz];
%! assert (get (hf, "paperposition"), pos, eps)
%!
%! ## changing papertype updates paperposition
%! set (hf, "paperunits", "centimeters");
%! set (hf, "papertype", "a4");
%! psz = get (hf, "papersize");
%! fsz = [10.16 12.7];
%! pos = [(psz/2 .- fsz/2) fsz];
%! assert (get (hf, "paperposition"), pos, eps)
%!
%! ## lanscape updates paperposition
%! set (hf, "paperorientation", "landscape");
%! psz = get (hf, "papersize");
%! fsz = [10.16 12.7];
%! pos = [(psz/2 .- fsz/2) fsz];
%! assert (get (hf, "paperposition"), pos, eps)
%
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?37554>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing, (continued)
- [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing, Ben Abbott, 2014/05/22
- [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing, Pantxo Diribarne, 2014/05/22
- [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing, Ben Abbott, 2014/05/22
- [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing, Ben Abbott, 2014/05/22
- [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing, Pantxo Diribarne, 2014/05/23
- [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing, Michael Godfrey, 2014/05/23
- [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing, Pantxo Diribarne, 2014/05/23
- [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing, Pantxo Diribarne, 2014/05/23
- [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing, Michael Godfrey, 2014/05/23
- [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing, Pantxo Diribarne, 2014/05/25
- [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing,
Michael Godfrey <=
- [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing, Pantxo Diribarne, 2014/05/26
- [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing, Rik, 2014/05/26
- [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing, Michael Godfrey, 2014/05/26
- [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing, Pantxo Diribarne, 2014/05/26
- [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing, Michael Godfrey, 2014/05/26
- [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing, Pantxo Diribarne, 2014/05/27
- [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing, Michael Godfrey, 2014/05/27