Re: Plotting 3D points on 2D-contour plots with colors indicating z values
- To: mathgroup at smc.vnet.net
- Subject: [mg42325] Re: Plotting 3D points on 2D-contour plots with colors indicating z values
- From: bobhanlon at aol.com (Bob Hanlon)
- Date: Tue, 1 Jul 2003 08:45:34 -0400 (EDT)
- References: <bdjggb$8f3$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
f[x_,y_] := Sin[x*y/5]; xmin=-5;xmax=5;ymin=-5;ymax=5; Plot3D[f[x,y],{x,xmin,xmax},{y,ymin,ymax}, PlotPoints->25]; nbrContours=15; ContourPlot[f[x,y],{x,xmin,xmax},{y,ymin,ymax}, PlotPoints->25, Contours->nbrContours, ContourStyle-> Table[{Hue[(k-1)/(nbrContours-1)]},{k,nbrContours}], ContourShading->False]; ContourPlot[f[x,y],{x,xmin,xmax},{y,ymin,ymax}, PlotPoints->25, Contours->nbrContours, ContourStyle-> Table[{Hue[(k-1)/(nbrContours-1)]},{k,nbrContours}], ColorFunction->(Hue[#]&)]; Bob Hanlon In article <bdjggb$8f3$1 at smc.vnet.net>, "mail.post2office.cornell.edu" <aw247 at cornell.edu> wrote: << How do I make a Contour Plot of 3D-points {x,y,z}, with different colors indicating the height values (z) and x,y as the axes??? >><BR><BR>