help-octave
[Top][All Lists]
Advanced

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

Re: Easy plot question


From: David Bateman
Subject: Re: Easy plot question
Date: Mon, 14 Apr 2003 17:40:51 +0200
User-agent: Mutt/1.3.9i

Dapr├Ęs address@hidden <address@hidden> (le 14/04/2003):
> 
> you can use the "title" keyword to set the legend with the "gplot" command:
> 
> octave:1> x = linspace(0,10,101) ' ;
> octave:2> plot1 = [ x , sin ( x ) ] ;
> octave:3> plot2 = [ x , cos ( x ) ] ;
> octave:4> gplot plot1 title "Sine" , plot2 title "Cosine"
> 
> You can find more information about gplot with "help -i gplot".

Or if it is really a legend you want and not a title, try the legend
function in octave-forge in main/plot/legend.m. This function has recently
been updated to allow a many different types of legend (in a box, not; 
inside or outside the plot, etc). You could get the same effect with the
appropriate use of the gset function, but legend.m does all of the 
hard work for you.

Cheers
David

-- 
David Bateman                                address@hidden
Motorola CRM                                 +33 1 69 35 25 00 (Ph)
Espace Technologique, Commune de St Aubin    +33 1 69 35 25 01 (Fax)
91193 Gif-Sur-Yvette FRANCE

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary



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