From e43c5565246c9f3d07ef3968807d2ffd28e25ca2 Mon Sep 17 00:00:00 2001 From: emeninno Date: Mon, 23 Oct 2023 15:48:09 +0200 Subject: [PATCH] few changes made in the PlotOverlays.C, in order to make the legend in the 2D overlay plots more readable --- RelVal/PlotOverlays.C | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/RelVal/PlotOverlays.C b/RelVal/PlotOverlays.C index 6ac74d090..f73557544 100644 --- a/RelVal/PlotOverlays.C +++ b/RelVal/PlotOverlays.C @@ -240,7 +240,15 @@ void overlay2D(std::vector hVec1, std::vector labelVec, TLege if (legend){ c.cd(3); - legend->Draw(); + legend->SetTextSize(0.03); + legend->SetTextFont(62); + legend->Draw("same"); + gPad->Update(); + legend->SetX1NDC(0.4); + legend->SetY1NDC(0.7); + legend->SetX2NDC(0.89); + legend->SetY2NDC(0.89); + gPad->Modified(); } auto savePath = outputDir + "/" + hVec[0]->GetName() + ".png";