color = 1 drawOpt = 'HIST E' leg = ROOT.TLegend(0.65, 0.05, 0.98, 0.35) leg.SetBorderSize(0) leg.SetFillStyle(0) leg.SetTextFont(42) leg.SetTextSize(0.04) leg_entry = ['Nominal', 'BothUp', 'BothDw'] leg.Draw() for p in plts: p.GetYaxis().SetTitle('NLO / LO QCD Corrections') p.SetLineColor(color) #p.GetYaxis().SetRangeUser(0.651,1.2499) p.GetYaxis().SetRangeUser(0.51, 1.499) p.SetMarkerSize(0) p.SetMarkerColor(color) p.Draw(drawOpt) leg.AddEntry(p, leg_entry[color - 1]) drawOpt = 'same HIST' color += 1 leg.Draw() labeltext = '#gamma+Z#rightarrow#nu#nu' if options.ipath1.count('W'): labeltext = '#gamma+W#rightarrowl#nu' if options.ipath1.count('jj_l'): labeltext = '#gamma+Z#rightarrowll' texts = getATLASLabels(can, 0.65, 0.88, labeltext) for t in texts: t.Draw()