Re: Question about ColorFunction
- To: mathgroup at smc.vnet.net
- Subject: [mg126605] Re: Question about ColorFunction
- From: Sseziwa Mukasa <mukasa at gmail.com>
- Date: Thu, 24 May 2012 03:30:59 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201205230729.DAA04974@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? >
- References:
- Question about ColorFunction
- From: Jee Lou <ywdr1987@gmail.com>
- Question about ColorFunction