help-octave
[Top][All Lists]
Advanced

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

Re: Using legend ?


From: Geordie McBain
Subject: Re: Using legend ?
Date: Wed, 07 Sep 2005 09:18:22 +1000

Hello.  Try

        plot (x, y, '+;sin;', x, z, '-;cos;') 

On Tue, 2005-09-06 at 19:10 -0400, Madhusudan Singh wrote:
> 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
> -------------------------------------------------------------
> 
> 



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