{ TCanvas *c1 = new TCanvas("c1","multipads",900,700); c1->Divide(1,2,0,0); gStyle->SetOptStat(0); double time[6] = {0., 15., 30., 60., 90., 120.}; double data[6] = {1., 0.62, 0.43, 0.32, 0.19, 0.14}; double err[6] = {0., 0.65, 0.45, 0.34, 0.21, 0.17}; double ex[6] = {0.}; for (int ii=0; ii<6; ii++) err[ii] = err[ii] - data[ii]; TGraphErrors *expBELLI = new TGraphErrors(6, time, data, ex, err); expBELLI -> SetMarkerStyle(20); expBELLI -> SetMarkerSize(2); c1->cd(1); gPad->SetTickx(2); expBELLI->Draw("ap"); c1->cd(2); gPad->SetTickx(2); expBELLI->Draw("ap"); c1->Print("c1.png"); }