| Author |
Comment/Response |
Forum Moderator
email me
 |
07/06/08 12:10pm
Unless I misunderstand, you do not have to do anything. The value sent to the color function is scaled to the range {0,1} where the min of what you are plotting is mapped to 0 and the max to 1. Here is some sample data:
datavz = Table[
With[{r = RandomReal[{0, 10}],
t = RandomReal[{0, 2 Pi}]}, {r Cos[t], r Sin[t],
r Sin[t]}], {10^2}];
A surface plot shows the shape of the data.
ListSurfacePlot3D[datavz, PlotRange -> All]
In the density plot the gradient of color goes from dark to light as the value plotted goes from -10 to 10.
ListDensityPlot[datavz, ColorFunction -> "GrayTones"]
If you are looking for something else, you might post a more specific example with a small data sample.
Tom Zeller
URL: , |
|