help-octave
[Top][All Lists]
Advanced

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

Re: Using legend ?


From: Jonathan Stickel
Subject: Re: Using legend ?
Date: Tue, 06 Sep 2005 16:17:10 -0700
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050317)

This is a bug, but if you run your legend command a second time, it will work. I don't know if this is fixed in the 2.9 versions of Octave.

Jonathan


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]