RE: Resizing frames, title sizes

From: Otto Schaile <Otto.Schaile_at_Physik.uni-muenchen.de>
Date: Fri, 8 Apr 2005 14:43:57 +0200 (CEST)


Hi Alberto
try:
{

   TCanvas * cc = new TCanvas("cc", "ccc");    cc->SetLeftMargin(0.3); // make space for big title    TFile f("hsimple.root");
   hpx->Draw();
   TAxis * ya = hpx->GetYaxis();

   ya->SetTitle("Huge title");
   ya->SetTitleSize(0.15);
   ya->SetTitleOffset(0.5);
   ya->CenterTitle();
   cc->Modified();

}

Cheers
Otto

-- 
Dr. Otto Schaile            Department f"ur Physik, LMU M"unchen
Phone: +49 89 289 14070     Am Coulombwall 1, D-85748 Garching, Germany
Mobil: +49 160 1553598
FAX:   +49 89 289 14072     EMail: Otto.Schaile_at_Physik.Uni-Muenchen.DE
Received on Fri Apr 08 2005 - 14:44:04 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:06 MET