bent.C

Go to the documentation of this file.
00001 void bent() {
00002 // Bent error bars
00003    const Int_t n = 10;
00004    Double_t x[n]  = {-0.22, 0.05, 0.25, 0.35, 0.5, 0.61,0.7,0.85,0.89,0.95};
00005    Double_t y[n]  = {1,2.9,5.6,7.4,9,9.6,8.7,6.3,4.5,1};
00006    Double_t exl[n] = {.05,.1,.07,.07,.04,.05,.06,.07,.08,.05};
00007    Double_t eyl[n] = {.8,.7,.6,.5,.4,.4,.5,.6,.7,.8};
00008    Double_t exh[n] = {.02,.08,.05,.05,.03,.03,.04,.05,.06,.03};
00009    Double_t eyh[n] = {.6,.5,.4,.3,.2,.2,.3,.4,.5,.6};
00010    Double_t exld[n] = {.0,.0,.0,.0,.0,.0,.0,.0,.0,.0};
00011    Double_t eyld[n] = {.0,.0,.05,.0,.0,.0,.0,.0,.0,.0};
00012    Double_t exhd[n] = {.0,.0,.0,.0,.0,.0,.0,.0,.0,.0};
00013    Double_t eyhd[n] = {.0,.0,.0,.0,.0,.0,.0,.0,.05,.0};
00014    TGraphBentErrors *gr = new TGraphBentErrors(
00015       n,x,y,exl,exh,eyl,eyh,exld,exhd,eyld,eyhd);
00016    gr->SetTitle("TGraphBentErrors Example");
00017    gr->SetMarkerColor(4);
00018    gr->SetMarkerStyle(21);
00019    gr->Draw("ALP");
00020 }

Generated on Tue Jul 5 15:44:22 2011 for ROOT_528-00b_version by  doxygen 1.5.1