Cern root available colors

I CERN root, I have found a new colour scheme given in this link https://root.cern/blog/new-color-schemes/. However, this colour scheme is for Pyroot; please tell me how to use it in C++.

Thanks

_ROOT Version: 6.26/14
_Platform: Ubuntu
Compiler: Not Provided


This is not for Pyroot only. The example in the blog post is a C++ one.

1 Like

Thanks for the reply.
When I trying to add these colors, I am getting the error

error: use of undeclared identifier 'kP6Blue'
        singlefits[i]->SetLineColor(kP6Blue);

The root version I am using is 6.26/14
Is there any additional library I need to import or I need to update root for the latest colors to work?

As said in the blog post:

These new color schemes, now in the master version of ROOT, will be available in version 6.34.

1 Like

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