bugGNU Octave - Bugs: bug #38547, incorrect PDF paper size


bug #38547: incorrect PDF paper size

Submitted by:  Dik Dirk <dikdirk>
Submitted on:  Tue Mar 19 13:16:31 2013  
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: Ben Abbott <bpabbott>
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Fri Jul 19 14:49:51 2013, comment #4:

Looks like 3.6.4 is the end of the 3.6.x series. So I'm changing the release to "dev", the status to "fixed", and closing this report.

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Fri Mar 22 02:05:42 2013, comment #3:

I've attached plots produced with 3.6.4 and the developers sources (default branch). The default branch appears to have fixed the problem. The version produced using 3.6.4 is "tall".

I've changed the "release" to 3.6.4. In the event there will be no 3.6.5, then this bug is already fixed.

(file #27649, file #27650)

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Tue Mar 19 13:29:11 2013, comment #2:

Sorry for the confusion, but in 3.4.3 it only works if "orient landscape" is added before the saveas command (which should not be necessary of course).

Dik Dirk <dikdirk>
Tue Mar 19 13:21:59 2013, comment #1:

The code works correctly in octave 3.4.3 by the way... so probably something is broken some release after that.

Dik Dirk <dikdirk>
Tue Mar 19 13:16:31 2013, original submission:

The following code should print a figure on a PDF and completely fill the page.
However, the papersize is set incorrectly. In Matlab the code works correctly by the way.

fplot(@sin,[0 1])
%get current size on screen
%set paper to same size
%place on right place of paper
set(gcf, 'PaperPositionMode', 'manual');
set(gcf, 'PaperPosition', [0 0 psz(1) psz(2)]);
pause(.2) %wait until the buffer is flushed

Dik Dirk <dikdirk>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #27649:  Octave-3.6.4.pdf added by bpabbott (3kB - application/pdf)
file #27650:  Octave-default.pdf added by bpabbott (3kB - application/pdf)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by bpabbott (Updated the item)
  • -unavailable- added by dikdirk (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Jul 19 14:49:51 2013bpabbottStatusConfirmed=>Fixed
      Assigned toNone=>bpabbott
    Fri Mar 22 02:05:42 2013bpabbottAttached File-=>Added Octave-3.6.4.pdf, #27649
      Attached File-=>Added Octave-default.pdf, #27650
      Operating SystemMicrosoft Windows=>Any

    Back to the top

    Powered by Savane 3.1-cleanup1