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