OK, I coded something like that:
[code]TH2D *hist = new TH2D(“hist”, “hist”, 20, 0, 20, 20, 0, 20);
for(int x=0; x<20; x++) for(int y=0; y<20; y++)
hist->SetBinContent(x, y, 0);
hist->SetBinContent(9, 9, 0.5);
hist->SetBinContent(9, 11, 0.5);
hist->SetBinContent(11, 9, 0.5);
hist->SetBinContent(11, 11, 0.5);
hist->SetBinContent(10, 10, 1);
hist->Draw(“lego1”);
gPad->Update();
TF2 *pol2_2d = new TF2(“pol2_2d”, “1-((x-10)^2+(y-10)^2)”, 0, 20, 0, 20);
TF2 pol2_2d_1 = new TF2(“pol2_2d_1”, "1-0.001((x-10)^2+(y-10)^2)", 0, 20, 0, 20);
pol2_2d->Draw(“SURF0SAME”);
pol2_2d_1->Draw(“SURF0SAME”);
gPad->Modified();
gPad->Update();
[/code]
pol2_2d and pol2_2d_1 exactly overlap… How do I make them display real values?