How to get color code?

Hi rooters,

I want to draw a 4-d plots marker plot, and use the color show the value of 4th dimension. How to get the color code like “COLZ”?

Thanks in advance.

Xiaodong

tree.Draw("x:y:z:u","some selection","col")
where u will me mapped to the color. see doc

Rene

Thanks Rene,

Your are right, follow your instruction I can get get what I want. But, for my application, if I use this way, the program runs very slowly. But, if I change the idea to use the PolyMarker3D to draw each points, the program will run very quickly. But the problem is just I said, I can not show the value of each point in the “COL” way.

Is there any way to do that?

Thanks a lot.

Xiaodong