Is there a way to convert an array of values (xi,yi,zi),i=1,…,n to a density plot instead of a ListPointPlot3D
?
I don't know if this is duplicated, but somehow, I cannot seem to just use ListDensityPlot3D
?
Answer
Hard to know exactly what you want without the explicit data, but maybe you'd like to bin the data?
SeedRandom[1234];
pts = RandomReal[{0, 1}, {1000, 3}];
centers = Tuples[Range[.1, .9, .2], 3];
nf = Nearest[centers];
ListDensityPlot3D[KeyValueMap[Append, CountsBy[pts, First@*nf]]]
Comments
Post a Comment