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

 
 

bug #38547: incorrect PDF paper size

Submitted by:  Dik Dirk <dikdirk>
Submitted on:  Tue 19 Mar 2013 01:16:31 PM UTC  
 
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 19 Jul 2013 02:49:51 PM UTC, 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 22 Mar 2013 02:05:42 AM UTC, 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 19 Mar 2013 01:29:11 PM UTC, 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 19 Mar 2013 01:21:59 PM UTC, 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 19 Mar 2013 01:16:31 PM UTC, 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
pos=get(gcf,'Position')
%set paper to same size
psz=get(gcf,'PaperSize')
psz(2)=psz(1)*pos(4)/pos(3)
set(gcf,'PaperSize',psz)
%place on right place of paper
set(gcf, 'PaperPositionMode', 'manual');
set(gcf, 'PaperPosition', [0 0 psz(1) psz(2)]);
%save
pause(.2) %wait until the buffer is flushed
fprintf('Saving...')
saveas(gcf,['test.pdf'])
fprintf('done!\n')

Dik Dirk <dikdirk>

 

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

Attach File(s):
   
   
Comment:
   

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 19 Jul 2013 02:49:51 PM UTCbpabbottStatusConfirmed=>Fixed
      Assigned toNone=>bpabbott
      Open/ClosedOpen=>Closed
      Release3.6.4=>dev
    Fri 22 Mar 2013 02:05:42 AM UTCbpabbottAttached File-=>Added Octave-3.6.4.pdf, #27649
      Attached File-=>Added Octave-default.pdf, #27650
      StatusNone=>Confirmed
      Release3.6.2=>3.6.4
      Operating SystemMicrosoft Windows=>Any

    Back to the top


    Powered by Savane 3.1-cleanup