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

 
 

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

Submitter:  Sonja Nyberg <sonjan456>
Submitted:  Thu 01 Mar 2012 10:50:27 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  bpabbott
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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

This has been fixed in the default branch.

Ben Abbott <bpabbott>
Group Member
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>
Group 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>
Group 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 Files:
   
   
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
  • -email is unavailable- added by bpabbott (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by sonjan456 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-08-04 bpabbott StatusNeed Info Fixed
        Assigned toNone bpabbott
        Open/ClosedOpen Closed
        Release3.6.0 dev
        Operating SystemMicrosoft Windows Any
    2013-06-23 rik5 SummaryPrinting custom size png file - figure not scaled correctly Printing custom size png file - figure not scaled correctly (Windows)
    2012-03-15 rik5 CategoryPlotting with gnuplot Plotting with OpenGL
    2012-03-02 rik5 StatusNone Need Info
    2012-03-01 sonjan456 Attached File- Added figure1.png, #25226
        Attached File- Added test2.png, #25227

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code