bugGNU Octave - Bugs: bug #35676, Printing custom size png file -...

 
 

bug #35676: Printing custom size png file - figure not scaled correctly (Windows)

Submitted by:  Sonja Nyberg <sonjan456>
Submitted on:  Thu 01 Mar 2012 10:50:27 AM UTC  
 
Category: Plotting with OpenGLSeverity: 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.

 

Sun 04 Aug 2013 02:22:50 AM UTC, comment #4:

This has been fixed in the default branch.

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Thu 15 Mar 2012 05:00:43 PM UTC, comment #3:

Summarizing, this bug appears not with gnuplot but with FLTK so I am changing the Category to "Plotting with OpenGL". It is not reproducible on Linux so this is a Windows-specific bug.

This suggests that some of the ancillary packages that are packaged with Octave in the installer are not up-to-date.

Rik <rik5>
Project Administrator
Thu 15 Mar 2012 01:13:48 PM UTC, comment #2:

Same problem for me, with 3.6.1_gcc4.6.2 under windows 7. Setting papersize, paperorientation, paperposition doesn't work; I tried several image format (png, eps, pdf, svg) but it keeps the same figure size. Even worse, it crashes when trying to edit the svg file with inkscape.
Fortunately, switching back to gnuplot toolkit does the trick.

thanks

Anonymous
Fri 02 Mar 2012 03:27:03 PM UTC, comment #1:

Could you provide a little bit more information. The bug category is "plotting with gnuplot" but Figure1.png was made with the FLTK toolkit. Should the category be changed?

At least on a Linux platform, Kubuntu 10.04, both gnuplot and FLTK produce a correctly sized figure with 3.6.0. This suggests that it may specifically be a bug with the included version of either FLTK or gnuplot on your Windows machine.

Rik <rik5>
Project Administrator
Thu 01 Mar 2012 10:50:27 AM UTC, original submission:

The commands used below, and the result figures (screenshot on the Figure window and the saved png) are attached.

h = figure(1);
plot(t,x.*1000,'r-','LineWidth',4);
grid on;

H = 3; W = 4;
set(h,'PaperUnits','inches')
set(h,'PaperOrientation','portrait');
set(h,'PaperSize',[H,W])
set(h,'PaperPosition',[0,0,W,H])
print(h,'test.png');

Sonja Nyberg <sonjan456>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #25226:  figure1.png added by sonjan456 (14KiB - image/png)
file #25227:  test2.png added by sonjan456 (17KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 04 Aug 2013 02:22:50 AM UTCbpabbottStatusNeed Info=>Fixed
      Assigned toNone=>bpabbott
      Open/ClosedOpen=>Closed
      Release3.6.0=>dev
      Operating SystemMicrosoft Windows=>Any
    Sun 23 Jun 2013 11:13:45 PM UTCrik5SummaryPrinting custom size png file - figure not scaled correctly=>Printing custom size png file - figure not scaled correctly (Windows)
    Thu 15 Mar 2012 05:00:43 PM UTCrik5CategoryPlotting with gnuplot=>Plotting with OpenGL
    Fri 02 Mar 2012 03:27:03 PM UTCrik5StatusNone=>Need Info
    Thu 01 Mar 2012 10:50:27 AM UTCsonjan456Attached File-=>Added figure1.png, #25226
      Attached File-=>Added test2.png, #25227

    Back to the top


    Powered by Savane 3.1-cleanup1