I have a 2D histogram that I’m plotting from a file. I’d like the stats box to show just the Entries, Mean X, Mean Y and standard deviations on those, but I can’t find a way to stop it from printing the name. Can someone help?
TH2F *h1 = (TH2F*)_file0->Get("h1");
TCanvas *c1 = new TCanvas("c1","c1",900,700);
h1->Draw("colz");
c1->Modified();
c1->Update();
TPaveStats *s1 = (TPaveStats*)h1->FindObject("stats");
s1->SetName("1");
c1->Modified();
c1->Update();