TPolyMarker3D draw points with different colors

Hi,

In TPolyMarker3D, I want to draw the points with different colors. I know TMarker can be used to set color for individual point for TGraph. Is there a similar way for TPolyMarker3D?

Thanks!

Please provide the following information:


ROOT Version ( 6.10/02):
Platform, compiler (e.g. CentOS 7.3, gcc6.2):


Hi,

Check macro basic3d.C from tutorials:

https://root.cern/doc/master/basic3d_8C.html

You cannot set individual color for each point in TPolyMarker3D.
But you can group points with same color and create as many TPolyMarker3D objects as number of colors you want to use.

Regards,
Sergey

Yeah, I set different TPolyMarker3D. It works. Thanks!

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