{ TCanvas *c1 = new TCanvas("c1",""); c1->cd(); TF2* fff = new TF2("fff","5.5e+15*TMath::Gaus(x,-0.6,7.30,0)*TMath::Gaus(y,1.5,6.24,0)+9.0e+15*TMath::Gaus(x,-0.5,8.34,0)*TMath::Gaus(y,0.9,6.93,0)",-10,10,-8.4,8.4); fff->SetTitle(";X [mm]; Y[mm]; #Phi [n_{eq}/cm^{2}]"); gStyle->SetPalette(55); fff->Draw("colz"); gPad->Modified(); gPad->Update(); //TPaletteAxis *palette = (TPaletteAxis*)fff->GetListOfFunctions()->FindObject("palette"); //palette->SetX2NDC(0.7); }