bugGNU Octave - Bugs: bug #48833, multi rows subplot behave...

 
 

bug #48833: multi rows subplot behave incorrectly with qt toolkit

Submitted by:  Pantxo Diribarne <pantxo>
Submitted on:  Sat 20 Aug 2016 11:08:24 AM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 24 Aug 2016 12:30:12 AM UTC, comment #5:

I tested the patch. It worked fine until the 'menubar' property was changed to 'none'. I looked around in the code for Figure and found yet another instance of adding a fudge factor to the window size. Once I corrected that, everything worked. Of course, then FLTK printing was messed up so I had to go remove the fudge factors from there as well. In the end, it all seems to work.

I pushed the patch here (http://hg.savannah.gnu.org/hgweb/octave/rev/0a2961d5893c). Closing report.

Rik <rik5>
Project Administrator
Tue 23 Aug 2016 07:45:52 AM UTC, comment #4:

@Dan: Does the patch have any effect on bug #48778? I don't have a Qt5 build for testing.

Pantxo Diribarne <pantxo>
Project Member
Mon 22 Aug 2016 05:23:39 PM UTC, comment #3:

The attached cset fixes both issues for me. I just don't know if the "+1" is intentional and why.

(file #38315)

Pantxo Diribarne <pantxo>
Project Member
Sun 21 Aug 2016 09:52:08 PM UTC, comment #2:

I also get your results. and
run your sript from a file and then at the prompt do

get (hf, "position")
get (0, "defaultfigureposition")

we get different numbers from the script than we do from the prompt!!

Doug Stewart <dastew>
Sun 21 Aug 2016 09:37:49 PM UTC, comment #1:

This may boil down to

This returns false when exectued in the terminal and true when executed from a script (drawnow is invoked only at the end of the script). After the figure has actually been drawn, it is one pixel higher than expected.

Pantxo Diribarne <pantxo>
Project Member
Sat 20 Aug 2016 11:08:24 AM UTC, original submission:

I think this bug has the same origin as bug #48522

The above returns true with fltk (or with qt and column wise subplots) but false with qt. It looks like the position of the first subplot is not exactly what it should be and thus subplot replaces the axes with a new one.

Pantxo Diribarne <pantxo>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #38315:  fig_height.patch added by pantxo (1KiB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by dastew (Posted a comment)
  • -unavailable- added by pantxo (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 29 Aug 2016 07:42:41 PM UTCrik5Open/ClosedOpen=>Closed
    Wed 24 Aug 2016 12:30:12 AM UTCrik5StatusNone=>Fixed
    Mon 22 Aug 2016 05:23:39 PM UTCpantxoAttached File-=>Added fig_height.patch, #38315

    Back to the top


    Powered by Savane 3.1-cleanup1