That's I do:
{
gROOT->Reset();
int i;
TCanvas *c = new TCanvas("c","canvas");
c->Divide(3,4);
TFile *f = new TFile("q.root");
f->Print();
ntuple->Print();
char dtstr[100];
for(i=0;i<12;i++) {
c->cd(i);
sprintf(dtstr,"data[%d]",i);
ntuple->Draw(dtstr);
}
c->Update();
}
All 12 histograms are drawn "on the same place" i.e. on main 'c'
canvas.
What do I wrong?
Thakns.
Stas.
------------------------------------------------------------------------------
Stanislav Tereshenko
Institute for High Energy Physics Protvino, Russia
Multi-Muon Spectrometer Department
e-mail: tereshenko@mx.ihep.su
sutasu@oea.ihep.su
sutasu@afsmail.cern.ch
------------------------------------------------------------------------------