bugGNU Octave - Bugs: bug #46516, Qt plotting, plot overlay ignores...

 
 

bug #46516: Qt plotting, plot overlay ignores plot order on Windows

Submitter:  Nicholas Jankowski <nrjank>
Submitted:  Tue 24 Nov 2015 04:19:06 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Nicholas Jankowski Open/Closed:  * Closed
Release:  * 4.2.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Tue 06 Jun 2017 09:24:27 PM UTC, comment #7: 

This has been fixed.  I tested with changeset 23548:05bbca224a14.

Closing report.

Rik <rik5>
Group administrator
Tue 06 Jun 2017 08:10:11 PM UTC, comment #6: 

I'm building MXE Octave right now.  I should be able to test this in a few hours.

Rik <rik5>
Group administrator
Mon 05 Jun 2017 11:36:44 AM UTC, comment #5: 

Unfortunately no. I'm not setup to compile from source, just running off the latest Windows release

Nicholas Jankowski <nrjank>
Group Member
Mon 05 Jun 2017 10:34:46 AM UTC, comment #4: 

@Nicholas: do you have access to a recent dev version? A recent change (http://hg.savannah.gnu.org/hgweb/octave/rev/06805aabbdd1) could eventually have an effect on this bug

Pantxo Diribarne <pantxo>
Group Member
Sat 17 Sep 2016 02:55:09 PM UTC, comment #3: 

This seems to be a Windows only problem.  I just re-tested with 4.2.0-rc1 and both fltk and qt are not correctly overlapping lines.

Rik <rik5>
Group administrator
Wed 25 Nov 2015 02:39:37 PM UTC, comment #2: 

oops, sorry. attached is a screencap showing side-by-side of plots produced with qt, gnuplot, and fltk (left to right).  in the qt plots the red + is always on top.  In gnuplot and fltk the order follows the plot order (subsequent plots always on top of earlier plots)


Nicholas Jankowski <nrjank>
Group Member
Wed 25 Nov 2015 12:05:56 AM UTC, comment #1: 

Could you post PNGs of the plots so that we can see what is happening?  If I understand it right, then I believe this may be a Windows only bug.  I ran the sample code under Linux and it worked fine.

For ease, I'm attaching a script, bad_overlap.m, which contains the code to produce the two figures.

(file #35543)

Rik <rik5>
Group administrator
Tue 24 Nov 2015 04:19:06 PM UTC, original submission:  

referring to a recent help list discussion [1], it seems that the new Qt graphics don't respect plot order when plots overlap. if run with the three different graphics toolkits, Qt looks different from gnuplot or fltk.  For the latter, whichever plot is 'first' is always on top where they overlap.  For Qt, the + plot is always on top whether it is first or second in the list.


>> close all;
>> x = 0:0.1:20;
>> y1 = sin(x); y2 = cos(x);
>> plot(x , y1, 'r+', 'markersize', 10, x, y2, 'y', 'linewidth', 4);legend('y1','y2');
>> figure;
>> plot(x, y2, 'y', 'linewidth', 4, x , y1, 'r+', 'markersize', 10);legend('y2','y1');


This seems to be a regression from previous versions before Qt was a generally available option, and gnuplot and fltk match the Matlab behavior if visual compatibility is necessary.



[1] http://octave.1599824.n4.nabble.com/Help-linestyleorder-in-chart-td4673583.html


Nicholas Jankowski <nrjank>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #35547:  Capture.PNG added by nrjank (259KiB - image/png - screencap showing overlap differences)
file #35543:  bad_overlap.m added by rik5 (250B - d2l/unknowntype)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by mtmiller (Updated the item)
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by nrjank (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 12 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-06-06 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2016-11-17 mtmiller Item GroupRegression Incorrect Result
        Release4.2.0-rc1 4.2.0
        SummaryOpenGl plotting, plot overlay ignores plot order on Windows Qt plotting, plot overlay ignores plot order on Windows
    2016-09-17 rik5 StatusNeed Info Confirmed
        Release4.0.0 4.2.0-rc1
        SummaryQt plotting, plot overlay ignores plot order OpenGl plotting, plot overlay ignores plot order on Windows
    2016-02-21 mtmiller CategoryPlotting Plotting with OpenGL
    2015-11-25 nrjank Attached File- Added Capture.PNG, #35547
    2015-11-25 rik5 Attached File- Added bad_overlap.m, #35543
        StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code