help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using legend ?


From: Madhusudan Singh
Subject: Using legend ?
Date: Tue, 6 Sep 2005 19:10:54 -0400
User-agent: KMail/1.7.2

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]