17 const Int_t npoints=3;
18 Double_t xaxis[npoints] = {1.,2.,3.};
19 Double_t yaxis[npoints] = {10.,20.,30.};
20 Double_t errorx[npoints] = {0.5,0.5,0.5};
21 Double_t errory[npoints] = {5.,5.,5.};
23 Double_t exl[npoints] = {0.5,0.5,0.5};
24 Double_t exh[npoints] = {0.5,0.5,0.5};
25 Double_t eyl[npoints] = {5.,5.,5.};
26 Double_t eyh[npoints] = {5.,5.,5.};
28 TGraph *gr1 =
new TGraph(npoints,xaxis,yaxis);
29 TGraphErrors *gr2 =
new TGraphErrors(npoints,xaxis,yaxis,errorx,errory);
30 TGraphAsymmErrors *gr3 =
new TGraphAsymmErrors(npoints,xaxis,yaxis,exl,exh,eyl,eyh);
31 TF2 *ff =
new TF2(
"ff",
"-1./y");
33 TCanvas *c1 =
new TCanvas(
"c1",
"c1");