bugGNU Octave - Bugs: bug #40722, Z-order stacking of lines and...


bug #40722: Z-order stacking of lines and patches

Submitted by:  Muhali <muhali>
Submitted on:  Wed 27 Nov 2013 01:01:54 PM UTC  
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

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


Sat 17 May 2014 08:30:39 PM UTC, comment #3:

I made a better fix here which eliminates Z-fighting between patches and their outlines (http://hg.savannah.gnu.org/hgweb/octave/rev/75f8926deef1).

Rik <rik5>
Project Administrator
Tue 29 Apr 2014 06:42:02 PM UTC, comment #2:

I believe I have finally fixed this problem on the development branch with this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/8969bd721448). Certainly the code in this bug report now works. I'm going to close the report, but it can be re-opened if new examples show more work needs to be done.

Rik <rik5>
Project Administrator
Wed 27 Nov 2013 04:45:00 PM UTC, comment #1:

See also bug #40054. There is a known problem with Z-order stacking of 2-D plots and OpenGL.

How best to solve it is hard to say. In the short term you can plot everything in 3-D and use your own Z values to control the stacking. Use "view(2)" to have a 2-D view so that it looks like an ordinary plot.


which places the line at Z=0 and the patch at Z=1.

Rik <rik5>
Project Administrator
Wed 27 Nov 2013 01:01:54 PM UTC, original submission:

Creating the figure

and doing

does not swap foreground and background. It does swap two lines and two patches though.

I am using a current version of octave (built yesterday).

Muhali <muhali>


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

Attach Files:

No files currently attached


   bug dependencies.

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by muhali (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-04-29 rik5 StatusConfirmed => Fixed
        Open/ClosedOpen => Closed
    2013-11-27 rik5 StatusNone => Confirmed
        Summarycannot arrange lines and patches => Z-order stacking of lines and patches
        Dependencies- => Depends on bugs #40054

    Back to the top

    Powered by Savane 3.4