Hi,
I have some problem to update canvas, I've tried the following
commands :
TFile f("myfile.root");
TTree *myt = Mytree;
TCanvas *myc = new TCanvas("myc","myc_titre",0,0,400,600);
myc->Divide(1,2);
myc_1->cd();
myt->Draw("var1");
myc->cd(2);
myt->Draw("var2");
Here everything works fine ... then
myc->Divide(2,2);
myc->cd(1);
myt->Draw("var3");
myc->cd(2);
myt->Draw("var4");
...
Here my canvas is never updated ... I've tried myc->Update(); and
myc->Modified(); in different places but it does not change the result.
Do I have to create again a new canvas before the second Divide ? Is there
something wrong in the few lines above ?
Thanks,
Sabine.
PS. Is there an equivalent to the "wait" we can use in PAW macros between
the drawing of 2 histos ?
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
o o
o Sabine Crépé-Renaudin o
o o
o ISN - 53 avenue des Martyrs - 38026 GRENOBLE CEDEX o
o FRANCE o
o o
o Email crepe@in2p3.fr o
o o
o Tel 04 76 28 40 72 from France o
o 33 4 76 28 40 72 from other countries o
o o
o Fax 04 76 28 40 04 from France o
o 33 4 76 28 40 04 from other countries o
o o
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:38 MET