Skip to content

Commit

Permalink
Providing default values in Hismaker Plot
Browse files Browse the repository at this point in the history
  • Loading branch information
kjvbrt committed Sep 13, 2024
1 parent c1c9b09 commit 3b0070d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions python/do_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,9 @@ def runPlotsHistmaker(args, hName, param, plotCfg):
leg2.SetFillStyle(0)
leg2.SetLineColor(0)
leg2.SetShadowColor(10)
leg2.SetTextSize(args.legend_text_size)
leg2.SetTextSize(args.legend_text_size
if args.legend_text_size is not None
else 0.035)
leg2.SetTextFont(42)
else:
legsize = 0.04*(len(hbackgrounds)+len(hsignal))
Expand All @@ -392,15 +394,17 @@ def runPlotsHistmaker(args, hName, param, plotCfg):
leg2 = None

leg = ROOT.TLegend(
args.legend_x_min if args.legend_x_min > 0 else legCoord[0],
args.legend_y_min if args.legend_y_min > 0 else legCoord[1],
args.legend_x_max if args.legend_x_max > 0 else legCoord[2],
args.legend_y_max if args.legend_y_max > 0 else legCoord[3])
args.legend_x_min if args.legend_x_min is not None else legCoord[0],
args.legend_y_min if args.legend_y_min is not None else legCoord[1],
args.legend_x_max if args.legend_x_max is not None else legCoord[2],
args.legend_y_max if args.legend_y_max is not None else legCoord[3])
leg.SetFillColor(0)
leg.SetFillStyle(0)
leg.SetLineColor(0)
leg.SetShadowColor(10)
leg.SetTextSize(args.legend_text_size)
leg.SetTextSize(args.legend_text_size
if args.legend_text_size is not None
else 0.035)
leg.SetTextFont(42)

for b in hbackgrounds:
Expand Down

0 comments on commit 3b0070d

Please sign in to comment.