MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Plot3D


On Nov 24, 1:08 pm, Viviana Niro <n... at mpi-hd.mpg.de> wrote:
> Hi all,
> I have a question about a 3D Plot. I have different surfaces that I've
> plotted all together in one plot, using Plot3D, but now I would like to
> add a legend to my 3D plot, that relate the different colors that I'm
> using with the different surfaces that I'm plotting, something like:
> blue -> sphere
> red-> cilinder
> How can I add a legend to a 3D Plot?
> Thanks a lot,
> Viviana Niro

All you need to do is to use the function "PlotStyle", here is a
simple example:

Plot3D[{x + y , y - x}, {x, -5, 5}, {y, -5, 5},
 PlotStyle -> {Red, Blue}]

Good Luck.


  • Prev by Date: Re: float -> RGB
  • Next by Date: Re: float -> RGB
  • Previous by thread: Re: Plot3D
  • Next by thread: Re: Plot3D