{ gStyle->SetOptTitle(kFALSE); gStyle->SetPalette(kSolar); int points = 6; double x[6] = {5,15,25,35,45,55}; //Time of measurement double y1[6] = {269,200,157,126,92,67}; // Activity of 110Ag double error[6] = {}; double errory[6] = {16,15,15,14,13,13}; auto graph = new TGraphErrors(points,x,y1,error,errory); graph->SetTitle("Activity 110Ag [Bq]; Time[s]; Activity[Bq]"); //Naming the axis graph->SetLineWidth(3); graph->SetMarkerColor(kRed); graph->Draw("CA* PLC PFC"); gPad->BuildLegend(); }