{ TCanvas *c1 = new TCanvas("c1","transparent pad",200,10,700,500); c1->SetFillStyle(4000); c1->SetFrameFillStyle(4000); TPad *pad1 = new TPad("pad1","",0,0,1,1); pad1->SetFillStyle(4000); //will be transparent pad1->SetFrameFillStyle(4000); pad1->Draw(); pad1->cd(); TH1F* h = new TH1F("h","h",100,-5,5); h->FillRandom("gaus"); h->SetFillStyle(4000); h->Draw(); pad1->Update(); //this will force the generation of the "stats" box pad1->Modified(); c1->cd(); c1->SaveAs("./test.pdf"); c1->SaveAs("./test.eps"); c1->SaveAs("./test.png"); }