Dear Rooters,
I am trying to plot only a part of a graph with error bars using the following statements in my macro:
// make graph
TGraphErrors *gr_fg3 = new TGraphErrors (n,energy,fg3,xerr,fgerr3); // for fgdraw fg data
// creating histogram (just for the axis)
TH2F *h1 = new TH2F("h1"," ",10,0.0,8.0,10,0.0,1.0); h1->Draw(); // draw axis gr_fg3->SetMarkerStyle(21); gr_fg3->SetMarkerSize(0.6); gr_fg3.DrawGraph(8,&gr_fg3->GetX()[5],&gr_fg3->GetY()[5],"P"); //
But the error bars disappear in the pad... Is there another function than DrawGraph that should be used with the TGraphErrors?
Cheers, Cecilie
This archive was generated by hypermail 2.2.0 : Mon Feb 19 2007 - 17:50:01 CET