Skip to content

Commit 65c2d92

Browse files
emeninnoBenedikt Volkel
authored andcommitted
few changes made in the PlotOverlays.C, in order to make the legend in the 2D overlay plots more readable (#1293)
1 parent 4f32188 commit 65c2d92

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

RelVal/PlotOverlays.C

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,15 @@ void overlay2D(std::vector<TH1*> hVec1, std::vector<std::string> labelVec, TLege
240240

241241
if (legend){
242242
c.cd(3);
243-
legend->Draw();
243+
legend->SetTextSize(0.03);
244+
legend->SetTextFont(62);
245+
legend->Draw("same");
246+
gPad->Update();
247+
legend->SetX1NDC(0.4);
248+
legend->SetY1NDC(0.7);
249+
legend->SetX2NDC(0.89);
250+
legend->SetY2NDC(0.89);
251+
gPad->Modified();
244252
}
245253

246254
auto savePath = outputDir + "/" + hVec[0]->GetName() + ".png";

0 commit comments

Comments
 (0)