17 ROOT.gStyle.SetOptStat(0)
19 c1 = ROOT.TCanvas(
"c1",
"fit residual simple")
20 h1 = ROOT.TH1D(
"h1",
"h1", 50, -5, 5)
21 h1.FillRandom(
"gaus", 2000)
23 h1.GetXaxis().SetTitle(
"x")
24 h1.GetYaxis().SetTitle(
"y")
26 rp1 = ROOT.TRatioPlot(h1)
28 lines = ROOT.std.vector(
'double')()
29 for i
in range(-3,4):lines.push_back(i)
30 rp1.SetGridlines(lines)
33 rp1.GetLowerRefGraph().SetMinimum(-4)
34 rp1.GetLowerRefGraph().SetMaximum(4)