How to set title for canvas with several pads

Try drawing TLatex text on a transparent pad covering the canvas. After you draw all your pads, do for instance:

   c1->cd();  // c1 is the TCanvas
   TPad *pad5 = new TPad("all","all",0,0,1,1);
   pad5->SetFillStyle(4000);  // transparent
   pad5->Draw();
   pad5->cd();
   TLatex *lat = new TLatex();
   lat->DrawLatexNDC(.4,.95,"My Title");
1 Like