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

 
 

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

Submitted by:  Rik <rik5>
Submitted on:  Tue 16 Oct 2012 11:50:05 PM 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: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

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>
Project MemberIn charge of this item.
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.

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?

(file #26783, file #26784, file #26785)

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
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>
Project 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>
Project MemberIn charge of this item.
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:

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>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

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

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 01 Aug 2013 11:52:28 AM UTCbpabbottStatusNone=>Fixed
      Assigned toNone=>bpabbott
      Open/ClosedOpen=>Closed
    Wed 17 Oct 2012 07:35:41 PM UTCbpabbottAttached 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.1-cleanup