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

MathGroup Archive 2007

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

Search the Archive

Re: Does ColorFunction-> have different meanings to Plot3D

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83328] Re: [mg83276] Does ColorFunction-> have different meanings to Plot3D
  • From: "W. Craig Carter" <ccarter at mit.edu>
  • Date: Sat, 17 Nov 2007 05:31:57 -0500 (EST)
  • References: <200711161041.FAA05001@smc.vnet.net>

>
> Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2},  ColorFunction -> (Hue[#]
> &)]
>
> Then I made a contour plot of the identical function, also with CF:
>
> ContourPLot[Sin[x + y^2], {x, -3, 3}, {y, -2, 2},  ColorFunction ->
> (Hue[#] &)]

Try ColorFunction-> (Hue[#3])&
for Plot3D.

The documentation in ColorFunction indicates which values 
get passed to the pure function.
HTH, C


  • Prev by Date: Re: DSolve
  • Next by Date: Given a matrix A, construct a semi-orthogonal matrix L
  • Previous by thread: Does ColorFunction-> have different meanings to Plot3D and
  • Next by thread: Re: Does ColorFunction-> have different meanings to Plot3D