Don’t do cooling_curve.SetLineColor(i)
if i
goes from 0 to a high value. See the corresponding colours here:
https://root.cern/doc/master/classTColor.html#C01
Some alternatives:
- define an array with the numbers of the colours you want to use from the basic colours above
- define an array with the colours from the “color wheel” (same page as above), for more options
- create your own table of colours with
CreateGradientColorTable
and use these; you can read about it on the same TColor page, and here:
ROOT: tutorials/graphs/multipalette.C File Reference
Note in particular these lines
Int_t FI = TColor::CreateGradientColorTable(3,Length,Red,Green,Blue,50);
for (int i=0; i<50; i++) colors[i] = FI+i;
For pyroot, see for example