Suppose I have a data set
data={{0,0,-1},{0,1,-0.5},{1,1,0},{2,1,0.5},{2,2,1}};
where the first two coordinates are x and y values, and the third is input for the color gradient function
crgrad[x_] := Blend[{{-1, Blue},{0, Black}, {1, Red}}, x];
What is the correct way to plot the data points and have each point be its corresponding color? I have already tried
dataPlt = Graphics[{Point[{#1, #2}], ColorFunction -> (crgrad[#3])} & @@@ data];
I also want to incorporate
ColorFunctionScaling -> False
Thanks!
Graphics[{crgrad[#3], Point[{#1, #2}]} & @@@ data]
? $\endgroup$