[ROOT] only 1 pad-picture from 6 ones

From: babintsev@mx.ihep.su
Date: Thu Apr 17 2003 - 12:28:24 MEST


      babintsev@mx.ihep.su, 17-APR-2003

 Hello rooters. (root Version   3.05/03)

 I cannot overpass  the following problem:
 I see only 1 pad out of 6:

{
   gROOT->Reset();
   TPostScript *ps = new TPostScript("fig.ps",111);

   TCanvas *c1 = new TCanvas("c1","Example",10,10,650,800);
   c1->Divide(2,3);

   Int_t n = 20;
   Double_t x[n], y[n], x1[n], y1[n];

   for(int j=1; j<7; j++) {
      for (Int_t i=0;i<n;i++) {
        x[i]   = i*0.5;
       y[i]   = (5+j)*cos(x[i]+0.2);
      }
      c1->cd(j);
      TGraph *gr = new TGraph(n,x,y);
      gr->Draw("AL*");
      //      c1->Update();
      c1->Pad()->Update();
      delete gr;
   }
//   c1->Update();
   ps->Close();
}
    

                                   Volodja Babintsev



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET