Hi, i’d like to use kBird Palette, but when I try to use it, i’ve the error:
Symbol kBird is not defined in current scope
I use Root v 5.34.36 for windows
Why?
Thanks
Ps. Does somebody know the name of this option:
?
Hi, i’d like to use kBird Palette, but when I try to use it, i’ve the error:
Symbol kBird is not defined in current scope
I use Root v 5.34.36 for windows
Why?
Thanks
Ps. Does somebody know the name of this option:
?
For “kBird”, you need ROOT 6.
Thanks pepe and thanks couet…about the option of that graph, doesn’t nobody know it?
Note that with ROOT 5.34 you can defined the palette yourself:
Double_t red[9] = { 0.2082, 0.0592, 0.0780, 0.0232, 0.1802, 0.5301, 0.8186, 0.9956, 0.9764};
Double_t green[9] = { 0.1664, 0.3599, 0.5041, 0.6419, 0.7178, 0.7492, 0.7328, 0.7862, 0.9832};
Double_t blue[9] = { 0.5293, 0.8684, 0.8385, 0.7914, 0.6425, 0.4662, 0.3499, 0.1968, 0.0539};
TColor::CreateGradientColorTable(9, stops, red, green, blue, 255, alpha);
Example here:
root.cern.ch/doc/master/classTColor.html#C05
thanks couet!
I think it’s the LEGO2 option.
thanks yus and couet!
Hey,
Is one forced to either update his/her ROOT or define his/her own colour palette, or are there no alternative way in which one can use the “kBird” option with the above mentioned version of ROOT.
Regards.
If you are using a ROOT version in which the kBird palette is not defined you can, as explained earlier in this thread, define the palette yourself. The parameters for kBird are:
Double_t red[9] = { 0.2082, 0.0592, 0.0780, 0.0232, 0.1802, 0.5301, 0.8186, 0.9956, 0.9764};
Double_t green[9] = { 0.1664, 0.3599, 0.5041, 0.6419, 0.7178, 0.7492, 0.7328, 0.7862, 0.9832};
Double_t blue[9] = { 0.5293, 0.8684, 0.8385, 0.7914, 0.6425, 0.4662, 0.3499, 0.1968, 0.0539};
Idx = TColor::CreateGradientColorTable(9, stops, red, green, blue, 255, alpha);