{ TCanvas *c1 = new TCanvas("c1", "c1",54,451,800,630); gStyle->SetOptTitle(0); TGraph *graph = new TGraph(4); graph->SetName("UID84"); graph->SetTitle("Graph"); graph->SetLineWidth(4); graph->SetPoint(101,3.096641751,-0.01163311115); graph->SetPoint(102,3.126609252,-0.01163311115); graph->SetPoint(103,3.141593002,-0.01163311115); graph->SetPoint(104,3.141593002,-0.02035794337); graph->Draw("al"); TLegend *leg = new TLegend(0.1934673,0.5801047,0.5037688,0.9441536,NULL,"brNDC"); leg->AddEntry("UID84","leg entry","l"); leg->Draw(); }