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();
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
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:00 MET