New color scheme not accessible from pyroot


Is the new ROOT color-wheel scheme not implemented yet in PyROOT (ROOT version 5.14, Python version 2.5.1)? From within the Python interpreter,

[pwa@hnpux3 craigb]$ python
Python 2.5.1 (r251:54863, Sep 29 2007, 18:25:15) 
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
>>> print ROOT.kWhite
>>> print ROOT.kBlack
>>> print ROOT.kRed
>>> print ROOT.kPink
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/d/home/pwa/apps/root/lib/", line 335, in __getattr2
    attr = _root.LookupRootEntity( name )
AttributeError: kPink


given the values of kRed etc. that you receive, you appear to be using a version of ROOT that does not have the new color scheme (e.g. in the new scheme, kRed == 632). AFAIK, the new color scheme was only introduced in 5.15.04, so no 5.14 release will have them.

Note that once you have a ROOT version that does have the new color scheme, PyROOT will pick it up automatically as kRed, kPink, etc. are available as globals.