[ROOT] Plotting error on data point

From: Tarun Kanti Ghosh (Tarun.Ghosh@vanderbilt.edu)
Date: Fri Apr 06 2001 - 02:30:53 MEST


Hello,

I am trying to plot error bars on the data points using object TGraphErrors.

   Float_t x3[]  = {};
   Float_t y3[]  = {};
   Float_t ex3[] = {};
   Float_t ey3[] = {};
   gr3 = new TGraphErrors(n3,x3,y3,ex3,ey3);
   gr3->SetMarkerColor(kBlack);
   gr3->SetLineWidth(3);
   gr3->SetMarkerStyle(21);
   gr3->Draw("LP");

How do I get the error bars with an upper end  and descending arrow
at the lower head. 
Any help will be appreciated.

Best regards,
Tarun

----------------------------------------------------------
Tarun Kanti Ghosh    Vanderbilt University 
Tel: (615) 343 1709     Fax: (615) 343 7263
URL: http://www.phenix.bnl.gov/~tghosh/tarun.html



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:41 MET