From: Michael C. <mic...@ua...> - 2004-11-17 11:32:30
|
I've been having some problems with legend.m in the plot subdir. Running analyze.m (attached) gives the following: octave:1> analyze error: invalid row index = 0 error: evaluating argument list element number 1 error: evaluating argument list element number 1 error: evaluating prefix operator `!' near line 190, column 7 error: if: error evaluating conditional expression error: evaluating if command near line 190, column 3 error: called from `legend' in file `/usr/share/octave/2.1.60/site/m/octave-forge/plot/legend.m' error: near line 11 of file `/home/mcreel/mpi_work/mle/analyze.m' octave:1> analyze warning: in fopen near line 55, column 3: warning: fopen: default open mode is now binary octave:2> Note that the error only occurs the first time (?!). On the first run, the legend is not displayed properly. On the second run, the legend appears, but the line colors in the legend are different from those of the lines. Commenting out lines 190-192 of legend.m seems to solve the problem, but I'm not sure what those lines are intended to do, so I don't want to make a change in CVS myself. analyze.m and the data file are attached to allow replication. TIA, Michael |