MathGroup Archive 1998

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

Search the Archive

Re: Shading Functions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg14331] Re: Shading Functions
  • From: Martin Kraus <mkraus at theorie3.physik.uni-erlangen.de>
  • Date: Thu, 15 Oct 1998 00:28:38 -0400
  • Organization: Regionales Rechenzentrum Erlangen, Germany
  • References: <6vuo01$899@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Des Penny wrote:
> 
> However the following does not work correctly.  I'm not sure why.
> 
> In[7]:=
> Show[p2, ColorFunction->colorFun];
> 
> I was under the impression that the above statement caused colorFun to
> operate on the z values of the function.  We should get the same plot
> as the preceeding Plot3D but we don't.  The output of the above clearly
> shows that colorFun is operating, but not correctly.
> 
> Can anyone help explain what's going on?
> 
> Cheers,
> 
> Des Penny

Hi Des,

the on-line manual of Mathematica for ColorFunction explains:

The arguments provided for the function specified by ColorFunction are
always in the range 0 to 1. 

Thus there is another linear transformation of the z-values before
colorFun gets them.
Things work correctly, but are poorly documented (?ColorFunction does
not give this
piece of information.)

Greetings

Martin


  • Prev by Date: Re: Mathematica 3 speed on a Sun Ultra1/200e ?
  • Next by Date: Re: GramSchmidt Orthogonalization question
  • Previous by thread: Re: Shading Functions
  • Next by thread: Electrodynamics