bugGNU Octave - Bugs: bug #33177, contourf with LVL = [0,0]

 
 

bug #33177: contourf with LVL = [0,0]

Submitter:  Marco Caliari <caliari>
Submitted:  Thu 28 Apr 2011 02:00:42 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.4.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 05 May 2011 03:43:36 AM UTC, comment #1: 

Thanks for contributing patches.  I know we've been slow in applying some of them, but there's always a lot to take care of.  I applied the patch on the stable branch (http://hg.savannah.gnu.org/hgweb/octave/rev/c6378cec77af)

Rik <rik5>
Group administrator
Thu 28 Apr 2011 02:00:42 PM UTC, original submission:  

Dear maintainers,

the following code


x = linspace(-2,2);
[X,Y] = meshgrid(x);
lvl = 1;
contourf(X.^2+Y.^2-1,[lvl,lvl])


draws a red disk (well, an ellipse) for any value of lvl BUT 0. The problem is in the function get_lvl_eps inside _contour_.m, which sets lvl_eps to 0. If you add a sqrt(eps) to lvl_eps as an absolute tolerance, the disk is drawn for lvl = 0, too. I'm enclosing a patch.

Marco

Marco Caliari <caliari>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #23318:  __contour__.m.diff added by caliari (105B - text/x-patch)

 

Depends on the following items: None found

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 caliari (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-05-05 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2011-04-28 caliari Attached File- Added _contour_.m.diff, #23318

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code