4-coordinates draw


I want to draw some points in three dimensions with TGraph2D. Each point has x,y,z and one 4th coordinate for instance energy. I want to create a color scale with minimum and maximum energy like the option TGraph2D->Draw(“pcol”) but define the color according to something else instead of Z position. Is there any way to do this?

The best is to use TNuple for this kind of plot:


x y and z are the position of the point in 3D and t is mapped on the current colour map.

It worked! Thank you very much.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.