(no subject)

From: OKUMURA, Akira <oxon_at_icrr.u-tokyo.ac.jp>
Date: Fri, 25 Aug 2006 02:14:52 +0900


Hello ROOTers

The attached GIF files are results of the following macro. # .x test.C(3, 3) => 3x3.gif
# .x test.C(3, 12) => 3x12.gif

void test(const int kW, const int kH)
{

   TCanvas* can = new TCanvas("can", "", kW*100+4, kH*100+28);    TH1D* hist = new TH1D("hist", "", 1, 0, 1);    can->Divide(kW, kH);

   for(int i=0; i<kW*kH; i++){

     can->cd(i+1);
     hist->Draw();

   } // i
}

Why are not the divided canvases square in 3x12.gif ? And how should I do to divide the canvas into square canvases as I expected ?

Sincerely,

OKUMURA, Akira oxon_at_icrr.u-tokyo.ac.jp
Institute for Cosmic Ray Research, University of Tokyo 5-1-5 Kashiwanoha Kashiwa Chiba 277-8582 Japan Phone/Fax : +81 4-7136-3153
Skype : okumura.akira

3x3.gif 12x3.gif
Received on Thu Aug 24 2006 - 19:15:01 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:00 MET