I have lists with 4 data e.g.
{{0,0,0,-2000},{0,0,.5,-1800},{0,0,1,-1500},{0,.5,0,-2005},{0,.5,.5,-1795},
{0,.5,.1,-1508} ... {x,y,z,B}}
How can I plot B values as colours? I have to use Color bar (from about -2000 till 0). I tried it but it doesn`t work.
Graphics3D[{Black, PointSize[.07],
Table[Point[points3D[[i]]], {i, 1, 5, 1}]}, Axes -> True,
ColorFunction -> (Function[list1[[i, 4]]]),
Hue[Rescale[x, {-0.5, 0.5}]], ColorFunctionScaling -> False,
ImageSize -> 800, BarLegend[{Hue, {0, -2000}}],
ColorFunctionScaling -> True]
Have you got any idea? I'd be grateful if someone help and thank you very much.