diff --git a/tutorials/dataframe/df105_WBosonAnalysis.py b/tutorials/dataframe/df105_WBosonAnalysis.py index 2c5d51bf8f6945..c1a02adcedbc24 100644 --- a/tutorials/dataframe/df105_WBosonAnalysis.py +++ b/tutorials/dataframe/df105_WBosonAnalysis.py @@ -170,10 +170,10 @@ def merge_histos(label): stack = ROOT.THStack() for h, color in zip( [singletop, diboson, ttbar, zjets, wjets], - [(208, 240, 193), (195, 138, 145), (155, 152, 204), (248, 206, 104), (222, 90, 106)]): + [(0.82, 0.94, 0.76), (0.76, 0.54, 0.57), (0.61, 0.6, 0.8), (0.97, 0.81, 0.41), (0.87, 0.35, 0.42)]): h.SetLineWidth(1) h.SetLineColor("black") - h.SetFillColor(ROOT.TColor.GetColor(*color)) + h.SetFillColor(color) stack.Add(h) stack.Draw("HIST") stack.GetXaxis().SetLabelSize(0.04) diff --git a/tutorials/dataframe/df107_SingleTopAnalysis.py b/tutorials/dataframe/df107_SingleTopAnalysis.py index 829ad2a59cadf3..0ae4cf00e24c95 100644 --- a/tutorials/dataframe/df107_SingleTopAnalysis.py +++ b/tutorials/dataframe/df107_SingleTopAnalysis.py @@ -209,10 +209,10 @@ def merge_histos(label): wjets.Scale(1.1) # Corrected normalization derived from a validation region for h, color in zip( [wjets, twtb, singletop], - [(222, 90, 106), (155, 152, 204), (208, 240, 193)]): + [(0.87, 0.35, 0.42), (0.61, 0.6, 0.8), (0.82, 0.94, 0.76)]): h.SetLineWidth(1) h.SetLineColor("black") - h.SetFillColor(ROOT.TColor.GetColor(*color)) + h.SetFillColor(color) stack.Add(h) stack.Draw("HIST") stack.GetXaxis().SetTitle("m_{W(l#nu)+b} [GeV]") diff --git a/tutorials/rcanvas/df105.py b/tutorials/rcanvas/df105.py index 39be54d9167edd..d7b3cfb9cd2f9c 100644 --- a/tutorials/rcanvas/df105.py +++ b/tutorials/rcanvas/df105.py @@ -191,10 +191,10 @@ def merge_histos(label): stack = ROOT.THStack() for h, color in zip( [singletop, diboson, ttbar, zjets, wjets], - [(208, 240, 193), (195, 138, 145), (155, 152, 204), (248, 206, 104), (222, 90, 106)]): + [(0.82, 0.94, 0.76), (0.76, 0.54, 0.57), (0.61, 0.6, 0.8), (0.97, 0.81, 0.41), (0.87, 0.35, 0.42)]): h.SetLineWidth(1) h.SetLineColor("black") - h.SetFillColor(ROOT.TColor.GetColor(*color)) + h.SetFillColor(color) stack.Add(h) c.Add[TObjectDrawable]().Set(stack, "HIST SAME")