       Re: Problem with ColorFunction in ListDensityPlot in

• To: mathgroup at smc.vnet.net
• Subject: [mg102851] Re: [mg102839] Problem with ColorFunction in ListDensityPlot in
• From: Bob Hanlon <hanlonr at cox.net>
• Date: Sun, 30 Aug 2009 06:07:28 -0400 (EDT)
• Reply-to: hanlonr at cox.net

```Any of these work

ListDensityPlot[Table[
Sin[i + j^2], {i, 0, 3, 0.05}, {j, 0, 3, 0.05}],
ColorFunction -> Hue]

ListDensityPlot[Table[
Sin[i + j^2], {i, 0, 3, 0.05}, {j, 0, 3, 0.05}],
ColorFunction -> (Hue[#] &)]

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

Bob Hanlon

---- janey <janemkiwi at gmail.com> wrote:

=============
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.

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? Is there a way around this that anybody knows of?

This problem exists in 7.0.0 and 7.1.0.

Thanks,
Janey.

```

• Prev by Date: Re: Problem with ColorFunction in ListDensityPlot in version 7
• Next by Date: Re: Re: work only with Performance->Speed
• Previous by thread: avi and QuickTime
• Next by thread: Can't reproduce a solution found in a paper using Mathematica