bugGNU Octave - Bugs: bug #31518, FLTK Toolbar initially absent on...


bug #31518: FLTK Toolbar initially absent on figure windows

Submitter:  Ben Abbott <bpabbott>
Submitted:  Tue 02 Nov 2010 04:09:24 AM UTC
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Fixed Assigned to:  None
Originator Name:  Ben Abbott Open/Closed:  * Closed
Release:  * dev Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Jump to the original submission

Sun 01 Apr 2012 06:48:20 PM UTC, comment #13: 

My tip is

$ hg tip
changeset:   14514:3313635c622d
tag:         tip
user:        Carlo de Falco <cdf@users.sourceforge.net>
date:        Sat Mar 31 16:20:09 2012 +0200
summary:     Remove calls to deleted function split_by.

I've attached the "MacOSX.png", which is the result of

graphics_toolik fltk
close all
contour (peaks)

The improper positon of the lower toolbar corrects itself if the figure's position is modified.

Looks like this one has resolved itself. I'm closing the report.

Ben Abbott <bpabbott>
Group Member
Sun 01 Apr 2012 06:39:11 PM UTC, comment #12: 

Is this bug still present?

Neither on Windows (MSVC & MinGW), nor on Linux (Mandriva) do I see this bug with Octave 3.6.1.

The only odd behavior is that

zlim ([-1 1])

makes the actual plot shrink upward in Y-direction a little, as if it makes room for an X-axis title.

In 3.7.0+ (yesterday's tip; Linux) even this behavior is now consistent - the room for the X-axis title is there already from the beginning.

Philip Nienhuis <philipnienhuis>
Group Member
Mon 20 Feb 2012 09:44:08 PM UTC, comment #11: 

Something with the menubar has changed.  Between 3.4.3 and 3.6.0 the menubar on FLTK plots is no longer displayed.  I'm re-titling the report and marking that this affects all operating systems.

Rik <rik5>
Group administrator
Fri 17 Feb 2012 01:31:03 AM UTC, comment #10: 

I noticed there is no longer a menu bar for the figures produced on Ubuntu. Thus, the menubar behavior on MacOS and Ubuntu are the same.

Is there supposed to be a menubar by default ?

If not, then how may the menubar be added to the figure ?

Ben Abbott <bpabbott>
Group Member
Wed 28 Sep 2011 08:31:46 PM UTC, comment #9: 

I've switched to the MacPorts package manager on one of my Macs. The problem still persists.

Ben Abbott <bpabbott>
Group Member
Wed 28 Sep 2011 06:55:18 PM UTC, comment #8: 

Has this been resolved?  The last comment was in December, 2010 and mentions pushing a changeset later that day.

Rik <rik5>
Group administrator
Mon 20 Dec 2010 01:34:28 PM UTC, comment #7: 

The flicker is due to a change in window size when printing. The number of pixels on screen is changed to match the pixels of the output. For vector images, the size on screen is changed to the size of the output in points. This was introduced for output using GL2PS.

I'll find an  appropriate place to add _fltk_redraw_ to the print function and push a changeset later today.

Ben Abbott <bpabbott>
Group Member
Thu 04 Nov 2010 12:13:20 AM UTC, comment #6: 

The toolbar is initially absent on all figure windows.

Thus ...

close all
backend fltk

The toolbar is absent.

p = get (gcf, "position");
set (gcf, "position", p*1.5); drawnow; set (gcf, "position", p);

After changing the figure position the tool bar is present.

Ben Abbott <bpabbott>
Group Member
Wed 03 Nov 2010 04:32:14 PM UTC, comment #5: 

To narrow it down a bit could you try using a simpler plot than contour?  For example:

x = linspace(-pi,pi,100);
plot(x, sin(x))

Is the toolbar still missing?

Rik <rik5>
Group administrator
Wed 03 Nov 2010 03:49:57 PM UTC, comment #4: 

I can confirm the only problem I see is the missing toolbox.

Ben Abbott <bpabbott>
Group Member
Wed 03 Nov 2010 03:32:52 PM UTC, comment #3: 

Perhaps the status should be confirmed as affecting Mac OS installations, and not reproducible on Linux? 

As of yesterday's zlim patch (ac6a199be45e), everything works correctly for me now.  You might try updating and see if this issue is now restricted to just the missing toolbar.

Rik <rik5>
Group administrator
Wed 03 Nov 2010 07:53:40 AM UTC, comment #2: 

Ok. So this looks like two problems.

Why was the status changed to "Works for Me"?

Ben Abbott <bpabbott>
Group Member
Tue 02 Nov 2010 05:06:27 PM UTC, comment #1: 

Per your request, tested on a dev version (30bcd1aa9f09) on a Linux system with FLTK 1.1.9.

The original set of commands produces the correct plot including the bottom toolbar.

The second zlim command does cause the ticklabels to disappear.

The third command restores the original plot.

So, I can't reproduce your lack of toolbar.  On the other hand, the zlim command shouldn't really affect a 2-D plot should it?  That looks like a problem.

Rik <rik5>
Group administrator
Tue 02 Nov 2010 04:09:24 AM UTC, original submission:  

On MacOS running FLTK 1.1.10, I see unusual behavior which I infer to be a problem with the initialization of the FLTK plot window.

After the commands ...

close all
backend fltk
contour (peaks)

I see the contour but the toolbar at the bottom is absent. If I add ...

zlim ([-1 1])

Then the axes ticklabels are also absent.

If I then do ...

pos = get (gcf, "position");
set (gcf, "position", 1.5*pos)
set (gcf, "position", pos)

... then all is well.

I've attached plots. I'm assuming this is MacOS specific, but I may be wrong. Checks by those on Windows and Linux as well as different versions of FLTK would be appreciated.

Ben Abbott <bpabbott>
Group Member


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

Attach Files:

Attached Files
file #25541:  MacOSX.png added by bpabbott (36KiB - 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 philipnienhuis (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by bpabbott (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 13 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-04-01 bpabbott Attached File- Added MacOSX.png, #25541
        StatusConfirmed Fixed
        Open/ClosedOpen Closed
        Operating SystemAny Mac OS
    2012-02-20 rik5 Operating SystemMac OS Any
        SummaryFLTK Toolbar initially absent on figure windows on MacOS FLTK Toolbar initially absent on figure windows
    2011-09-28 rik5 SummaryProblems with the FLTK backend on MacOS FLTK Toolbar initially absent on figure windows on MacOS
    2011-09-28 rik5 CategoryNone Plotting with OpenGL
    2010-11-03 rik5 StatusWorks For Me Confirmed
    2010-11-02 rik5 Item GroupNone Other
        StatusNone Works For Me
    2010-11-02 bpabbott Attached File- Added missing-toolbar+ticklabels.png, #21896
        Attached File- Added after_position_change.png, #21897

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code