RE: Divide canvas and SetPhi()?

From: Fine, Valeri <fine_at_bnl.gov>
Date: Fri, 17 Mar 2006 18:02:43 -0500


Hello Bill,

Root experts  

   While I'm asking my simple minded questions I'll bring up another.  

  Using Version 4.04/02  

  I divide the canvas and want to change the Phi viewing angle for the sub canvases.  

  If I do:

 c1->Divide(2,1);

    c1_1->SetPhi(225.0);
    c1_2->SetPhi(225.0);  

  CINT may complain but does what I want. If, however, I try to compile the script with ACLIC

 the compiler says c1_1 and c1_2 are not declared and balks. If I declare c1_1 and c1_2

TCanvas c1_1, c1_2;

then Divide does not use those canvases so the SetPhi commands do nothing. How do I solv

 this problem?                 

You should do  

 c1->Divide(2,1);

    c1->cd(1);

    gPad ->SetPhi(225.0);

    c1->cd(2);
    gPad->SetPhi(225.0);  

Hope this helps. My best regards, Valeri     Received on Sat Mar 18 2006 - 00:03:27 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:57 MET