32 static Int_t colors[50];
33 static Bool_t initialized = kFALSE;
35 Double_t Red[3] = { 1.00, 0.00, 0.00};
36 Double_t Green[3] = { 0.00, 1.00, 0.00};
37 Double_t Blue[3] = { 1.00, 0.00, 1.00};
38 Double_t Length[3] = { 0.00, 0.50, 1.00 };
41 Int_t FI = TColor::CreateGradientColorTable(3,Length,Red,Green,Blue,50);
42 for (
int i=0; i<50; i++) colors[i] = FI+i;
46 gStyle->SetPalette(50,colors);
51 static Int_t colors[50];
52 static Bool_t initialized = kFALSE;
54 Double_t Red[3] = { 1.00, 0.50, 0.00};
55 Double_t Green[3] = { 0.50, 0.00, 1.00};
56 Double_t Blue[3] = { 1.00, 0.00, 0.50};
57 Double_t Length[3] = { 0.00, 0.50, 1.00 };
60 Int_t FI = TColor::CreateGradientColorTable(3,Length,Red,Green,Blue,50);
61 for (
int i=0; i<50; i++) colors[i] = FI+i;
65 gStyle->SetPalette(50,colors);
69 TCanvas *c3 =
new TCanvas(
"c3",
"C3",0,0,600,400);
71 TF2 *f3 =
new TF2(
"f3",
"0.1+(1-(x-2)*(x-2))*(1-(y-2)*(y-2))",1,3,1,3);
73 f3->SetLineColor(kBlack);
77 TExec *ex1 =
new TExec(
"ex1",
"Pal1();");
79 f3->Draw(
"surf1 same");
83 TExec *ex2 =
new TExec(
"ex2",
"Pal2();");
85 f3->Draw(
"surf1 same");