TLegend *legend=new TLegend(0.6,0.604,0.88,0.878); legend->SetTextFont(72); legend->SetTextSize(0.02); legend->AddEntry(gr,"Germanium","lpe"); legend->AddEntry(gr2,"LaBr3","lpe"); legend->Draw();