MathGroup Archive 2009

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

Search the Archive

Re: Problem with ColorFunction in ListDensityPlot in version 7

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102854] Re: Problem with ColorFunction in ListDensityPlot in version 7
  • From: Albert Retey <awnl at gmx-topmail.de>
  • Date: Sun, 30 Aug 2009 06:08:03 -0400 (EDT)
  • References: <h7b045$cm$1@smc.vnet.net>

Hi,

> Has anyone tried using the ColorFunction option in ListDensityPlot? In
> version 6, the following works:
> 
> ListDensityPlot[Table[Sin[i+j^2],{i,0,3,0.05},{j,
> 0,3,0.05}],ColorFunction=EF=82=AEFunction[{x,y,z},Hue[z]]]
> 
> but not in version 7.

same for me.

> It only seems to work now with the preprogrammed defaults, or pure
> functions.
> 
> That example above is actually from the version 7 help page. It cannot
> even evaluate its own example
> 
> (see under  examples/scope/presentation, 2nd one down) which, f
> evaluated, results in an empty plot.
> Is this a bug? 

I would say yes. Have you reported it?

> Is there a way around this that anybody knows of?

Just playing around, I found that they probably just got confused with
the order of arguments. This gives the same plot in version 7 as the
code you gave for version 6:

ListDensityPlot[Table[Sin[i + j^2], {i, 0, 3, 0.05}, {j, 0, 3, 0.05}],
  ColorFunctionScaling -> False,
 ColorFunction -> Function[{x, y, z}, Hue[x]]
 ]


hth,

albert


  • Prev by Date: Re: if only on parameter of 2D is to be shown in 3D
  • Next by Date: Re: Problem with ColorFunction in ListDensityPlot in
  • Previous by thread: Re: Problem with ColorFunction in ListDensityPlot in
  • Next by thread: programatically creating and testing successive models