(no subject)

From: Venkatesh Kaushik (venkat@hepmail.uta.edu)
Date: Thu Sep 11 2003 - 17:04:52 MEST


Hi ROOTers,
I have a couple of graphs that i draw on the same canvas using TMultigraph
option, why do i see the X-axis labes and the Y-axis labels for both the
graphs overlap, even the stats overlap. am i doing something wrong?

 Constrain = 1;
 TCanvas *c=new TCanvas("c","Mokka GEM Response Curve",0,27,1212,771);
 ...
 ... .....

 // First graph with a fit

 TGraph *grE=new TGraphErrors(6,E,E_Mean,errE,Err);
 grE->Draw("AP");
 grE->Fit("pol1");
 TF1 *myFuncE=grE->GetFunction("pol1");
 if(Constrain)myFuncE->SetParameter(0,0);
 Double_t slopeE_Mean=myFuncE->GetParameter(1);
 grE->SetLineColor(kRed);

 // Second graph with a fit

 TGraph *grH=new TGraphErrors(6,E,H_Mean,errH,HErr);
 grH->Draw("AP");
 grH->Fit("pol1");
 TF1 *myFuncH=grH->GetFunction("pol1");
 if(Constrain)myFuncH->SetParameter(0,0);
 Double_t slopeH_Mean=myFuncH->GetParameter(1);
 grH->SetLineColor(kBlue);

 TMultiGraph *mg = new TMultiGraph();
 mg->Add(grE);
 mg->Add(grH);
 mg->Draw("AP");

  ..
 ..
I would appreciate any help in this regard.
Thank you.
Venkat.
----------------------------------------------------------



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