help-octave
[Top][All Lists]
Advanced

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

RE: Multiple mesh plot with a correct legend


From: Xandri Farr
Subject: RE: Multiple mesh plot with a correct legend
Date: Mon, 11 Aug 2008 07:54:39 +0200

Hi Ben

Thank you for the response.  I'm using GNU Octave, version 2.1.73.
I had a look at "help colormap" but this as far as I understand only
manages the colour of the different plots.  The part I would really
would like to edit is the description given to each mesh/surface 
drawn on the axis.  Something like "help legend" provides the following:

" Legend puts a legend on the current plot using the specified strings
  as labels. Use independant strings (@var{st1}, @var{st2}, @var{st3}...), a
  matrix of strings (@var{matstr}), or a cell array of strings (@var{cell})
  to specify legends. Legend works on line graphs, bar graphs, etc..."

I could not apply this command successfully to a multiple mesh plot. 

Your help will be appreciated.

Regards
Xandri


-----Original Message-----
From: Ben Abbott [mailto:address@hidden 
Sent: 08 August 2008 02:50 PM
To: Xandri Farr
Cc: address@hidden
Subject: Re: Multiple mesh plot with a correct legend


On Aug 8, 2008, at 2:31 AM, Xandri Farr wrote:

> Hi there
>
> Please forgive me for re-sending this e-mail. In the haste of  
> sending the e-mail I forgot to add a Subject line to my e-mail.
>
> Can somebody please assist me to plot a multiple mesh plot with a  
> user-defined legend.
> So far the following works to plot more than one mesh plot in one  
> window on one axis...
>
>    mesh(x,y,z)
>    hold
>    mesh(i,j,k)
>
> However, I can not manage to add a legend that describes each mesh  
> and its colour.  The figure just displays
> line 1, line2, etc with the colour of the mesh.
>
> I would like to rename these "lines".

Can you tell us which version of Octave your are running?

In any event, take a look at "help colormap" ... does that do what you  
need?

Ben





E-mail Disclaimer
http://www.sunspace.co.za/emaildisclaimer.htm




reply via email to

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