Suppose I have points
data = {{0,1,0},{0,0,1},{1,0,0},{0.2,0.8,0}};
And another array exists with
colours = {0.1,0.2,0.6,0.3};
I want to Plot a ListPointPlot3D of data, with colour of each point defined by colours.
I tried something like
Show[ListPointPlot3D[data],
ColorFunction-> (ColorData["Rainbow"][#1] /@ colours)];
But was unsuccessful. Any help would be appreciated!
Graphics3D[ {AbsolutePointSize@12, Point[data, VertexColors -> (ColorData["Rainbow"] /@ colours) ]} ]– Kuba Jan 24 '19 at 14:26BarLegend["Rainbow"]next to it? Inset or whatever? – Kuba Jan 24 '19 at 15:03