I’m not sure how to deal with C++ pointers within PyROOT.
I want to be able to get the RGB values for ROOT’s built-in colors via the GetRGB method. So I tried:
In [3]: ROOT.TColor.GetColor(3).GetRGB()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/jeff/Work/data/<ipython console> in <module>()
AttributeError: 'int' object has no attribute 'GetRGB'
GetColor returns an integer, which in the C interpreter you can directly cast to a TColor*, but I see no way to turn this thing into a TColor in PyROOT.
Any advice?