Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #10198 > unrolled thread

Re: Question about ColorFunction

Started bySseziwa Mukasa <mukasa@gmail.com>
First post2012-05-24 07:31 +0000
Last post2012-05-24 07:31 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Question about ColorFunction Sseziwa Mukasa <mukasa@gmail.com> - 2012-05-24 07:31 +0000

#10198 — Re: Question about ColorFunction

FromSseziwa Mukasa <mukasa@gmail.com>
Date2012-05-24 07:31 +0000
SubjectRe: Question about ColorFunction
Message-ID<jpko4m$ekh$1@smc.vnet.net>
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?
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web