_ROOT Version:6.33.01
_Platform:Mac os 14.5
Hi all,
I’ve try to set Palette color with below.
const int n = 6;
Int_t MyPalette[n];
Double_t Red[] = {0.8, 1.0, 1.0, 0.0, 1.0, 1.0};
Double_t Green[] = {0.8, 0.0, 0.5, 1.0, 0.0, 0.0};
Double_t Blue[] = {0.8, 1.0, 0.0, 0.0, 0.0, 0.0};
Double_t Length[] = {0.0, 1./6., 2./6., 3./6., 4./6., 5./6.};
Int_t FI = TColor::CreateGradientColorTable(n, Length, Red, Green, Blue, n);
for (int i = 0; i < n; i++)
MyPalette[i] = FI + i;
gStyle->SetPalette(n, MyPalette); // NOLINT
gStyle->SetNumberContours(n);
it seems the first bin is yellow, the rgb is not set by my color array.
How can I set the first bin color of z axis?