bugGNU Octave - Bugs: bug #37584, FLTK printing exceeds height set...

 
 

bug #37584: FLTK printing exceeds height set with PaperPosition property

Submitter:  Rik <rik5>
Submitted:  Tue 16 Oct 2012 11:50:05 PM 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:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 01 Aug 2013 11:52:28 AM UTC, comment #4: 

With this change the problem has been fixed.

http://hg.savannah.gnu.org/hgweb/octave/rev/ea19ea629a09

Ben Abbott <bpabbott>
Group Member
Wed 17 Oct 2012 07:35:41 PM UTC, comment #3: 

The 'menubar' property should turn the menu bar at the top of the figure on/off.

I had tried to fix the status bar problem a while back, but fltk on MacOS X has other problems that confuses things.  If attached the three images produced by the commands below.


close all
graphics_toolkit fltk
figure (1)
% initial_figure.png
print junk.pdf
% after_print.pdf
set (gcf (), "menubar", "none")
set (gcf (), "menubar", "figure")
% after_set_menubar_{none,figure}.png


It appears to me that the initial fltk figure incorrectly positions the status bar and that the menu bar is either missing or has its height set to zero.  My impression is that something trivial is wrong with how the fltk window is being defined.

Perhaps someone with experience with fltk could quickly spot and fix the problem?


Ben Abbott <bpabbott>
Group Member
Wed 17 Oct 2012 06:01:47 PM UTC, comment #2: 

That was my guess as well.  The printed file doesn't show the status bar, of course, but I think it shows the room reserved for the status bar.  Any idea how to work around that?

There is a graphics property, 'menubar', but that seems to affect the presence or absence of a bar on the top of the figure, rather than the bottom.

Rik <rik5>
Group administrator
Wed 17 Oct 2012 05:08:05 PM UTC, comment #1: 

I think this is due to the status bar (name?) at the bottom.

Ben Abbott <bpabbott>
Group Member
Tue 16 Oct 2012 11:50:05 PM UTC, original submission:  

When printing using the FLTK backend the end figure is always 0.28 inches larger on the bottom than the requested PaperPosition height.  This does not happen with the gnuplot backend.

Sample code:


graphics_toolkit fltk
plot (1:10);
print tst.jpg


Examine tst.jpg in an image editor such as the Gimp and you will find that it is 8"x6.28" instead of 8"x6".

Rik <rik5>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #26783:  inital_figure.png added by bpabbott (37KiB - image/png)
file #26784:  after_print.png added by bpabbott (41KiB - 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 (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-08-01 bpabbott StatusNone Fixed
        Assigned toNone bpabbott
        Open/ClosedOpen Closed
    2012-10-17 bpabbott Attached File- Added inital_figure.png, #26783
        Attached File- Added after_print.png, #26784
        Attached File- Added after_set_menubar_{none,figure}.png, #26785

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code