17 ROOT.gStyle.SetOptStat(0)
19 c1 = ROOT.TCanvas(
"c1",
"A ratio example")
20 h1 = ROOT.TH1D(
"h1",
"h1", 50, 0, 10)
21 h2 = ROOT.TH1D(
"h2",
"h2", 50, 0, 10)
22 f1 = ROOT.TF1(
"f1",
"exp(- x/[0] )")
25 h1.FillRandom(
"f1",1900)
26 h2.FillRandom(
"f1", 2000)
30 h1.GetXaxis().SetTitle(
"x")
31 h1.GetYaxis().SetTitle(
"y")
33 rp = ROOT.TRatioPlot(h1,h2)
36 rp.GetLowYaxis().SetNdivisions(505)