I failed running a zoning program (hereafter an example) as suggested in
TPad.html#TPad:Divide
and TPad:cd
I get always the last Draw() within a full window. Did I miss something ?
Greetings,
Faouzi
{
gROOT->Reset();
char cmd[20] ;
c1 = new TCanvas("c1", "Zoning ",200,10,900,700);
c1.Divide(2,2) ;
for(Int_t i=0 ; i < 4; i++) {
sprintf(cmd,"c1.cd(%d) ;",i) ;
printf(" --> Cmd = %s ",cmd) ;
gInterpreter->ProcessLine(cmd);
fun = new TF1("fun","abs(sin(x)/x)",1.*i,10.*i);
fun->Draw() ;
}
return ;
}
F. Attallah
GSI mbH
Planckstr 1
D-64291 Darmstadt
Tel: +49 (0)6159 71 2743
Fax: +49 (0)6159 71 2901
Email: F.Attallah@gsi.de