Hi,
I believe that this piece of code
Int_t MyPalette[100];
Double_t r[] = {0., 0.0, 1.0, 1.0, 1.0};
Double_t g[] = {0., 0.0, 0.0, 1.0, 1.0};
Double_t b[] = {0., 1.0, 0.0, 0.0, 1.0};
Double_t stop[] = {0., .25, .50, .75, 1.0};
Int_t FI = TColor::CreateGradientColorTable(5, stop, r, g, b, 100);
for (int i=0;i<100;i++) MyPalette[i] = FI+i;
in the Color palettes chapter in the TColor documentation contains some misleading links: variables names r & b should not be linked to anything.