3d plot with color pellete

Hii Root Users

I have the values of potential function V for each x,y,z co-ordinate and woluld like to plot in such a way that the value of potential for each co-ordinate is given by some color, how can i do this

Thanks in advancce

Make a Tree with the 4 branches V,x,y,z, then do

tree.Draw("x:y:z:V") or

tree.Draw("x:y:z:V*factor") where factor is a scale factor such that V*factor is between 0 and 50 (your number of colors)