Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

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

Search the Archive

Re: Plot3D

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83614] Re: Plot3D
  • From: mark <markmgg at googlemail.com>
  • Date: Sun, 25 Nov 2007 04:30:06 -0500 (EST)
  • References: <fi8pn6$h1h$1@smc.vnet.net>

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