TLegend *legend = new TLegend(x1,y1,x2,y2); legend->SetMargin(0.1,0.1,0.2,0.2);
TLegend *legend = new TLegend(x1,y1,x2,y2); legend->SetMargin(0.05,0.05,0.05,0.05);The TLegend class is part of the ROOT package library. ROOT is an open-source software framework for data analysis, simulation, and visualization.