User Tools

Site Tools


root:colorscheme

This is an old revision of the document!


Color scheme

255 Colors scheme

To have 255 colors in the histograms, add the following to the root logon macro:

const Int_t NRGBs = 5;
const Int_t NCont = 255;
Double_t stops[NRGBs] = { 0.00, 0.34, 0.61, 0.84, 1.00 };
Double_t red[NRGBs]   = { 0.00, 0.00, 0.87, 1.00, 0.51 };
Double_t green[NRGBs] = { 0.00, 0.81, 1.00, 0.20, 0.00 };
Double_t blue[NRGBs]  = { 0.51, 1.00, 0.12, 0.00, 0.00 };
TColor::CreateGradientColorTable(NRGBs, stops, red, green, blue, NCont);
gStyle->SetNumberContours(NCont);
root/colorscheme.1273061779.txt.gz · Last modified: 2010/05/05 14:16 by decianm