MathGroup Archive 2007

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

Search the Archive

Plot3D and ContourPlot problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg73038] Plot3D and ContourPlot problem
  • From: "Josef Otta" <josef.otta at gmail.com>
  • Date: Tue, 30 Jan 2007 07:12:22 -0500 (EST)

Hi,
i want to combine Plot3D and ContourPlot. Do You have any idea how to do
that?
I need to have for example picture with plotted function f[x,y] and on the
x-y plane shown its contours

f[x_, y_] := Exp[-(x^2 + y^2)]

a = Plot3D[f[x, y], {x, -2, 2}, {y, -2, 2}, HiddenSurface ->
    False, Shading -> False, Boxed -> True, PlotPoints -> 15]
b = ContourPlot[f[x, y], {x, -2, 2}, {y, -2, 2}, PlotPoints -> 30]

Any ideas how to do something like "Show[a,b]"?

Thanks,
Josef


  • Prev by Date: Confused about correlations in sequence of Random[] numbers
  • Next by Date: WhichRootOfUnity
  • Previous by thread: RE: Confused about correlations in sequence of Random[] numbers
  • Next by thread: WhichRootOfUnity