Draw color plots using different color palettes.
void Pal1()
{
Double_t Green[3] = { 0.00, 1.00, 0.00};
Double_t Length[3] = { 0.00, 0.50, 1.00 };
if(!initialized){
for (int i=0; i<50; i++) colors[i] = FI+i;
return;
}
}
void Pal2()
{
Double_t Green[3] = { 0.50, 0.00, 1.00};
Double_t Length[3] = { 0.00, 0.50, 1.00 };
if(!initialized){
for (int i=0; i<50; i++) colors[i] = FI+i;
return;
}
}
TF2 *f3 =
new TF2(
"f3",
"0.1+(1-(x-2)*(x-2))*(1-(y-2)*(y-2))",1,3,1,3);
}
- Author
- Olivier Couet
Definition in file multipalette.C.