MathGroup Archive 2012

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

Search the Archive

Re: Question about ColorFunction


The arguments to ColorFunction are scaled,  from the help documentation:

With the usual default setting  ColorFunctionScaling->True, all arguments supplied to  func are scaled to lie in the range 0 to 1.

Compare:

Plot3D[Sin[x + y], {x, 0, 3}, {y, 0, 3},
 ColorFunction -> (Hue[(Sin[3 #1 + 3 #2] + 1)/2] &)]

Regards,
	Sseziwa


On May 23, 2012, at 3:29 AM, Jee Lou wrote:

> Anyone explain to me how ColorFunction works? Why Plot3D[Sin[x + y], {x, 0, 3}, {y, 0, 3},  ColorFunction -> (Hue[Sin[#1 + #2]] &)] and Plot3D[Sin[x + y], {x, 0, 3}, {y, 0, 3}, ColorFunction -> (Hue[#3] &)] return different color distributions?
>



  • Prev by Date: On special polynomials decomposition
  • Next by Date: Re: Question about ColorFunction
  • Previous by thread: Question about ColorFunction
  • Next by thread: Re: Question about ColorFunction