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