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

 
 

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

Submitter:  Muhali <muhali>
Submitted:  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
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>
Group 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.

Example:


plot3([0 2], [0,1], [0 0], "r", "linewidth", 10)
patch([0 2 1], [1 1 0], [1 1 1], "b")


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

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

Creating the figure


plot([0 2], [0,1], "r", "linewidth", 10)
patch([0 2 1], [1 1 0], "b")


and doing


set(gca,'children',flipud(get(gca,'children')))


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:
   
   
Comment:
   

No files currently attached

 

Digest:
   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)
  •  

    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 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.13-758e.
    Corresponding source code