Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Loading...
Searching...
No Matches
hist033_TRatioPlot_fit_confidence.py
2## \ingroup tutorial_hist
3## \notebook
4## Example that shows how you can set the colors of the confidence interval bands by using
5## the method `TRatioPlot::SetConfidenceIntervalColors`.
6## Inspired by the tutorial of Paul Gessinger.
7##
8## \macro_image
9## \macro_code
10##
11## \author Alberto Ferro
12
13import ROOT
14
16
17c1 = ROOT.TCanvas("c1", "fit residual simple")
18h1 = ROOT.TH1D("h1", "h1", 50, -5, 5)
19h1.FillRandom("gaus", 2000)
20h1.Fit("gaus")
21h1.GetXaxis().SetTitle("x")
22h1.GetYaxis().SetTitle("y")
23
24rp1 = ROOT.TRatioPlot(h1)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.