bugGNU Octave - Bugs: bug #41872, fltk: 'patch' object covers grid...

 
 

bug #41872: fltk: 'patch' object covers grid when printed to image file

Submitter:  sergey plotnikov <nul0m>
Submitted:  Fri 14 Mar 2014 04:27:49 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.8.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 15 Apr 2014 08:32:54 AM UTC, comment #4: 

Sorry, I've just found this is being discussed as bug #35648. Could anyone close this as a duplicate?
Will copy my comment there.

sergey plotnikov <nul0m>
Tue 15 Apr 2014 08:21:47 AM UTC, comment #3: 

This looks like a problem of sorting when rendering an image with gl2ps. We chose not to sort primitives of 2D images and according to gl2ps documentation they are output in stream in the order they appear in the feedback buffer.

In case we don't switch off the sorting for 2D images (comment out the line 71 (my cset is 6a4b7ccc60b1) of lininterp/corefcn/gl2ps-renderer.cc) output image has grid before the patch object.

As to the issue noticed by Ma Jun, it's still there and I'm going to make another bug report if this wasn't yet reported.

sergey plotnikov <nul0m>
Sun 16 Mar 2014 09:19:53 AM UTC, comment #2: 

Actually, this message was supposed to show bug with printing to an image, but you're right there's one more issue with patch object: at axes created in Octave patch object appears behind grid, when in Matlab it by default covers grid lines.

Just to concentrate on the problem I initially wanted to highlight, please use the following piece of code.


patch([1 1 2 2],[1 2 2 1], [1 0.8 1])
grid on
set(gca,'layer','top');
print('-depsc','123.eps')


When run in Matlab this will make both Matlab figure and eps-file with grid before the patch. But in eps-file created by Octave grid lines appears behind the patch notwithstanding at the corresponding Octave figure grid is drawn on the top layer.

sergey plotnikov <nul0m>
Sun 16 Mar 2014 07:55:02 AM UTC, comment #1: 

I tried this on MATLAB, that patch apperas before the grid, too.
but if you plot patch([1 1 1.5 2],[1 2 3 1], [1 0.8 1]) instead, you can see the grids in the blank.

Ma Jun <yefllower>
Fri 14 Mar 2014 04:27:49 PM UTC, original submission:  

Despite it is shown behind axes at original figure, when printed to image file 'patch' object appears before the grid.


graphics_toolkit fltk
patch([1 1 2 2],[1 2 2 1], [1 0.8 1])
grid on
print('-depsc','123.eps')


sergey plotnikov <nul0m>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2014-04-16 rik5 StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code