Run Graph array macro

From: Zhu FengRong <zhufr_at_ihep.ac.cn>
Date: Thu, 16 Mar 2006 09:42:47 +0800


Hello,

   In the root_v4.01.02.Linux.RH7.3.gcc296 environment,I failed to run the macro like this:    

      {
        Float_t a[4]={450,1050,1431,1983};
       Float_t  b[4][4]= 

{1576,3420,4854,6635,117,262,402,528,21,53,71,93,4,18,24,28};  TCanvas *c1=new TCanvas("c1","",1);
 c1->Divide(2,2);
 for(i=1;i<5;i++)
  {
  c1->cd(i);
  gr[i-1]=new TGraph(4,a,b[i-1]);
  gr[i-1]->Draw("AL*");

  }

      }
 Would you help me to succeed in running it?  Thank you in advance.   

with best wishes,
Fengrong Zhu
Institute of High Energy Physics,
C.A.S P.R.C
zhufr_at_ihep.ac.cn
--
Open WebMail Project (http://openwebmail.org) Received on Thu Mar 16 2006 - 02:42:49 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:57 MET