TPolyMarker3D draw points with different colors


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?


Please provide the following information:

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


Check macro basic3d.C from tutorials:

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.


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.