bugGNU Octave - Bugs: bug #37458, cont_lev undefined in contourf

 
 

bug #37458: cont_lev undefined in contourf

Submitted by:  Jordi Gutiérrez Hermoso <jordigh>
Submitted on:  Fri 28 Sep 2012 06:56:47 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: Jordi Gutiérrez Hermoso <jordigh>
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 09 May 2017 10:38:13 PM UTC, comment #5:

Yes, I now see the problem with the contourf call. I also see that the original issue was about the error message being unhelpful, not that the example code fails to generate a plot.

So, this issue is that the error message is misleading as to where the problem is. It looks like an Octave bug due to a variable not being set. The actual problem is that the user's command will result in no contours being drawn. Adding the lines from the original patch will get rid of the error message, so the user will examine their own code first. Perhaps adding a warning would also help the user diagnose this case.

Mark H. <markh>
Tue 09 May 2017 10:39:40 AM UTC, comment #4:

1) Do you understand that you asked for contour lines that don't exist?

2) the fix that Jordi did in comment #1 seems to have disappeared.
I manually made the same changes to the _contour_.m file and the error disappeared.

Doug Stewart

Anonymous
Tue 09 May 2017 09:38:53 AM UTC, comment #3:

Forgot to add that I'm using the current version (4.2.1) on Arch Linux.

Mark H. <markh>
Tue 09 May 2017 09:34:20 AM UTC, comment #2:

There seems to have been regression. Running the command from the original submission of this issue results in the same error.

z = [1,1,1,1,1,1,1;1,1,1,2,2,1,1;1,1,1,1,1,1,1;1,1,1,1,1,1,1]; contourf(z, [3,4])

error: 'cont_lev' undefined near line 251 column 28
error: called from
_contour_>add_patch_children at line 251 column 15
_contour_ at line 201 column 3
contourf at line 75 column 16

Mark H. <markh>
Fri 28 Sep 2012 07:04:44 PM UTC, comment #1:

Well, that was easy:

http://hg.savannah.gnu.org/hgweb/octave/rev/1b4d7c703eed

Jordi Gutiérrez Hermoso <jordigh>
Project AdministratorIn charge of this item.
Fri 28 Sep 2012 06:56:47 PM UTC, original submission:

The following should not error out:

Jordi Gutiérrez Hermoso <jordigh>
Project AdministratorIn charge of this item.

 

(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 markh (Posted a comment)
  • -unavailable- added by jordigh (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
    Tue 09 May 2017 09:36:02 AM UTCmarkhCarbon-CopyRemoved markh=>-
    Tue 09 May 2017 09:34:20 AM UTCmarkhCarbon-Copy-=>Added markh
    Fri 28 Sep 2012 07:04:44 PM UTCjordighStatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1