MathGroup Archive 2009

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

Search the Archive

Re: Problem with ColorFunction in ListDensityPlot in version 7


> 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]]



  • 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