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:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  Ben Abbott <bpabbott>
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  Any

Add a New Comment(Rich 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 Files:
   
   
Comment:
   

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only project members can vote.

     

     

     

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-07-19 bpabbott StatusConfirmed => Fixed
        Assigned toNone => bpabbott
        Open/ClosedOpen => Closed
        Release3.6.4 => dev
    2013-03-22 bpabbott Attached 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.3