bugGNU Octave - Bugs: bug #35908, Fig is saved in pdf in wrong size

 
 

bug #35908: Fig is saved in pdf in wrong size

Submitted by:  Dik Dirk <dikdirk>
Submitted on:  Tue 20 Mar 2012 03:09:58 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: Ben Abbott <bpabbott>
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 27 Mar 2012 03:14:16 PM UTC, comment #4:

I have submitted a new and probably related bug, see #36014. Maybe your changeset fixes this as well...

Dik Dirk <dikdirk>
Mon 26 Mar 2012 09:39:49 PM UTC, comment #3:

I've pushed a changeset

http://hg.savannah.gnu.org/hgweb/octave/rev/36cfbd23fe9f

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Mon 26 Mar 2012 01:18:26 AM UTC, comment #2:

I may not get back to this for a few days and don't want to forget what I found.

I suspect something wrong with the papersize updater when the papertype is "<custom>". Meaning the bug is in graphics.cc and/or graphics.h.in.

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Mon 26 Mar 2012 01:07:50 AM UTC, comment #1:

This is broken in both the stable and default branch (but differently).

For the stable branch, the work around is to specify landscape.

For release 3.6.1, if the units are left in inches and the orientation is specified, then all should work.

I'll look at fixing the default branch.

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Tue 20 Mar 2012 03:09:58 PM UTC, original submission:

The following code should produce a pdf in which the figure fills the page, how, this is clearly not the case, see attached pdf.
figure()
fplot(@sin,[-1 1])
set(gcf,'PaperUnits','centimeters')
set(gcf,'PaperSize', [15 12])
set(gcf,'PaperPosition',[0 0 15 12])
drawnow
pause(2)
saveas(gcf,'test.pdf','pdf')

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 #25418:  test.pdf added by dikdirk (3KiB - application/pdf)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Updated the item)
  • -unavailable- added by bpabbott (Posted a comment)
  • -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 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 06 Apr 2012 05:33:50 AM UTCrik5StatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Mon 26 Mar 2012 09:39:49 PM UTCbpabbottStatusConfirmed=>Ready For Test
    Mon 26 Mar 2012 01:07:50 AM UTCbpabbottStatusNone=>Confirmed
      Assigned toNone=>bpabbott
      Release3.6.1=>dev
      Operating SystemMicrosoft Windows=>Any
    Tue 20 Mar 2012 03:09:58 PM UTCdikdirkAttached File-=>Added test.pdf, #25418

    Back to the top


    Powered by Savane 3.1-cleanup1