bugGNU Octave - Bugs: bug #31100, patch edges always black with fltk...

 
 

bug #31100: patch edges always black with fltk backend

Submitted by:  John W. Eaton <jwe>
Submitted on:  Wed 22 Sep 2010 08:30:28 AM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: David Bateman <dbateman>
Originator Name: jweOpen/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 27 Oct 2010 11:57:10 PM UTC, comment #3:

The issue wasn't quite what I thought it was, and perhaps the fltk backend isn't to blame. I believe the correct fix for this is the changeset I pushed in

http://hg.savannah.gnu.org/hgweb/octave/rev/131d56b6d9a3

With this change, both

patch ([0.1, 0.1, 0.9, 0.9, 0.1], [0.1, 0.9, 0.9, 0.1, 0.1], "facecolor", "none", "edgecolor", "flat", "linewidth", 10, "cdata", 20);

and

bar(rand(2,3))

work correctly with the fltk backend..

D.

David Bateman <dbateman>
Project MemberIn charge of this item.
Wed 27 Oct 2010 09:44:56 PM UTC, comment #2:

While looking at the slow contour bug report I figured out why this is happening. The fltk backend is misinterpreting the sense of the facevertexcdata property. It is using the facevertexcdata property to set the edge color, whereas

http://www.mathworks.com/help/techdoc/ref/patch_props.html

states clearly that this affects the facecolor. The _patch_ fucntion in octave sets this value accordingly, and often to [] which results in the fltk backend plotting black edges for the patches. The fltk backend should use the "edgecolor" property instead to set the color of the patch edge.

As I'm working on this stuff now, I'll fix this issue.

D.

David Bateman <dbateman>
Project MemberIn charge of this item.
Thu 23 Sep 2010 08:22:55 PM UTC, comment #1:

It's not just the patch edges. Try

bar(rand(2,3))

with the gnuplot and fltk backends

D.

David Bateman <dbateman>
Project MemberIn charge of this item.
Wed 22 Sep 2010 08:30:28 AM UTC, original submission:

I noticed that contour lines are not appearing in color with the fltk backend while they do appear in color with the gnuplot backend. I think I've tracked it down to a problem with the patch function. For example:

patch ([0.1, 0.1, 0.9, 0.9, 0.1], [0.1, 0.9, 0.9, 0.1, 0.1], "facecolor", "none", "edgecolor", "flat", "linewidth", 10, "cdata", 20);

gives a blue box with the gnuplot backend but a black box with the fltk backend. I made the linewidth large simply to make it easier to distinguish the color of the line.

John W. Eaton <jwe>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dbateman (Posted a comment)
  • -unavailable- added by jwe (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 27 Oct 2010 11:57:42 PM UTCdbatemanStatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed
    Wed 27 Oct 2010 09:44:56 PM UTCdbatemanStatusNone=>In Progress
      Assigned toNone=>dbateman

    Back to the top


    Powered by Savane 3.1-cleanup1