ciao jayoung!
you can do like that:
c1.Divide(2,2);
which will divide in 2X2 pads, same size;
The new pads are called: c1_1,c1_2,c1_3,c1_3,c1_4
You can draw in them
c1_1.cd();
hist1.Draw();
c1_2.cd();
hist2.Draw();
(....)
you can also do something like
c1_1.Divide(1,2);
which will give you c1_1_1,c1_1_2.
Cheers,
Michael
>
> I tried to divide canvas into 2 by 2. When I clike canvas window to get
> the canvas menu and clike divide in canvas menu(I mean using GUI) it
> works. However, when I type the command, "c1->GetPadDivision(2,2)" it
> does not work. When I execute the following commands, it draws histogram
> on original canvas c1 instead of on the 1st pad in canvas.
>
> root [0] TFile file("../ntuple.root");
> root [1] c1 = new TCanvas("s1","Histogram",700,500)
> (class TCanvas*)0x0
> root [2] c1->cd(1);
> root [3] c1->GetPadDivision(2,2);
> root [4] c1->cd(1);
> root [5] si_adc.Draw("a0","iny==8 && inx==10");
>
> Could you help me?
>
> ---
> Thanks,
> Jayoung
>
>
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:44 MET