Re: Plot3D
- To: mathgroup at smc.vnet.net
- Subject: [mg83662] Re: Plot3D
- From: dh <dh at metrohm.ch>
- Date: Wed, 28 Nov 2007 05:21:06 -0500 (EST)
- References: <fi8pn6$h1h$1@smc.vnet.net>
Hi Vivian, I just note, that often, if I send an answer from home, it never pops up here. Therefore, I try again. ShowLegend will do what you want. But the documentation is pretty thin on this command. Here is a simple example that should get you started: legend={{Red,"Red"},{Blue,"Blue"}}; ShowLegend[ Plot3D[{x+y,y-x},{x,-5,5},{y,-5,5},PlotStyle->{Red,Blue}], {{{Red,"First surface"},{Blue,"Secondt surface"}}} ] hope this helps, Daniel Viviana Niro 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 >