I noticed a strange behaviour of patch functions in fink's octave-3.6.1 on mac osx 10.7. In matlab, the two following calls lead to the same (at least on screen) patch object :
In octave, the first works even though the patch is green and not black. The second way leads to an error (the same in gnuplot and fltk) *if it is the first time patch has been called in the session* :
error: setdata: A(I): index out of bounds; value 4 out of bound 3 error: called from: error: /sw/share/octave/3.6.1/m/plot/private/__patch__.m at line 262, column 5 error: evaluating argument list element number 2
error: /sw/share/octave/3.6.1/m/plot/private/__patch__.m at line 362, column 7 error: /sw/share/octave/3.6.1/m/plot/private/__patch__.m at line 352, column 3 error: /Users/pdiribarne/Documents/On/testpatch/testpatch.m at line 4, column 1
Now if I insist (we never know) "close all" and try again : - with gnuplot : it does nothing (but silently this time) - with fltk : it works even though the axes scales don't update
Can someone confirm this? And if so, is this a known issue, a bug or a bad way to manipulate patches?