From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 Description of problem: s=randn(n);plot(s); does not work as expected for n>7. (it should produce n plots, but it would produce only 7). Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.run octave 2.at octive prompt type: s=randn(10); plot(s) 3. Actual Results: See 7 plots, 8 keys (legends). Expected Results: 10 plots, 10 keys (legends) Additional info: The problem is with both RH packaged octave as well as with custom compiled the most recent version. The problem seems to be specific to RedHat 8.0, it does not reproduce on RH7.3 nor on Debian systems. There is some discussion of this problem on octave mailing list. It might be not a bug in octave after all but rather in gcc3.2 or glibc/libstdc++ libs.
There appears to be a limit of 8 on the # of plots produced using 8.0 with octave-2.1.39-2
It is a bug. The actual bug is in internal 'sprintf' function. To demonstrate it try: octave:1> cmd="0"; for j=0:28 cmd=sprintf("%s, %d", cmd, j+1) endfor Anyway the bug fixed in the CVS and in the upcoming release 2.1.40. (To call the fact that there is only 7 plots for 8 keys "a feature" is a stretch.)
FWIW, I don't see 7, but rather 8, plots. But I'll look form 2.1.40 down the road.
FWIW: The octave-2.1.40 is released, I have compiled it can confirm that the bug is gone.
Fixed in octave-2.1.40-1.