bugGNU Octave - Bugs: bug #39555, problem with figure position,...

 
 

bug #39555: problem with figure position, menubar, & toolbar on MacOSX

Submitter:  Ben Abbott <bpabbott>
Submitted:  Tue 23 Jul 2013 11:35:37 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  bpabbott
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
   

Thu 01 Aug 2013 11:48:18 AM UTC, comment #5: 

I pushed a change that fixes this problem for me.

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

Ben Abbott <bpabbott>
Group Member
Sat 27 Jul 2013 01:37:04 PM UTC, comment #4: 

When an axes object is added to a new figure, the menubar is obscured (see the attached, macosx.png). The rendered axes position is correct, but the figure position is 20 pixels too tall.  However, the axes and figure position properties each report the correct default values.


Ben Abbott <bpabbott>
Group Member
Sat 27 Jul 2013 01:29:16 PM UTC, comment #3: 

There is both a menubar and a toolbar which may be interacting with the figure's position size.  With the changeset below, the menu bar is visible provided no axes objects are present.

http://hg.savannah.gnu.org/hgweb/octave/rev/7a67ab7c4771

The area reserved for the figure's canvas is consistent with the figure's "position" property.


Ben Abbott <bpabbott>
Group Member
Sat 27 Jul 2013 12:46:07 PM UTC, comment #2: 

Renaming.

Ben Abbott <bpabbott>
Group Member
Tue 23 Jul 2013 11:36:55 AM UTC, comment #1: 

Opps, I had a typo. Trying again.

On Mac OSX, when a figure is created, the toolbar is 20 pixels too high on the figure window, and the figure window is 20 pixels too tall.

After

figure ()
axes ()

The attached "initial_figure.png" is displayed.

After

pos = get (gcf (), "position");
set (gcf (), "position", pos + 1);
redraw ()
set (gcf (), "position", pos);

The attached "fixed_figure.png" is displayed.

I've attaching an ugly diff that fixes this.

Ben Abbott <bpabbott>
Group Member
Tue 23 Jul 2013 11:35:37 AM UTC, original submission:  

On Mac OSX, when a figure is created, the toolbar is 20 pixels too high on the figure window, and the figure window is 20 pixels too tall.

After

figure ()
axes ()
-verbatm-
The attached "initial_figure.png" is displayed.

After
+verbatim+
pos = get (gcf (), "position");
set (gcf (), "position", pos + 1);
redraw ()
set (gcf (), "position", pos);

The attached "fixed_figure.png" is displayed.

I've attaching an ugly diff that fixes this.

Ben Abbott <bpabbott>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #28670:  macosx.png added by bpabbott (54KiB - image/png)
file #28669:  MacOSX-no-axes.png added by bpabbott (43KiB - image/png - "figure ()" or "clf ()" produces this result)
file #28646:  initial_figure.png added by bpabbott (41KiB - image/png)
file #28647:  figure.diff added by bpabbott (689B - application/octet-stream)
file #28648:  fixed_figure.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 (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 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-08-07 bpabbott StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2013-08-01 bpabbott StatusNone Ready For Test
    2013-07-27 bpabbott Attached File- Added macosx.png, #28670
    2013-07-27 bpabbott Attached File- Added MacOSX-no-axes.png, #28669
    2013-07-27 bpabbott Summaryfigure toolbar is in wrong location problem with figure position, menubar, & toolbar on MacOSX
    2013-07-23 bpabbott Attached File- Added initial_figure.png, #28646
        Attached File- Added figure.diff, #28647
        Attached File- Added fixed_figure.png, #28648

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code