Hi
I am trying to plot two different quantities against the same abcissa and then
trying to put a legend in. It fails :
octave:4> plot(x,y,'+',x,z,'-')
octave:5> legend('sin','cos')
warning: in graw near line 150, column 3:
warning: graw is deprecated and will be removed from a future
warning: version of Octave.
warning: You should use the higher-level plot functions
warning: ("plot", "mesh", "semilogx", etc.) instead
warning: of the low-level plotting commands.
warning: If you absolutely must use this function, use the
warning: internal version __gnuplot_raw__ instead.
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/site/m/octave-forge/plot/legend.m'
What is the recommended way to add legends ?
Thanks.
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------