5 from ROOT
import TCanvas, TFile, TPaveText
6 from ROOT
import gROOT, gBenchmark
8 c1 = TCanvas(
'c1',
'The Fit Canvas', 200, 10, 700, 500 )
12 c1.GetFrame().SetBorderMode(-1 )
15 gBenchmark.Start(
'fit1' )
20 fill = TFile(
'py-fillrandom.root' )
31 sqroot = gROOT.FindObject(
'sqroot' )
37 h1f = gROOT.FindObject(
'h1f' )
38 h1f.SetFillColor( 45 )
44 fitlabel = TPaveText( 0.6, 0.3, 0.9, 0.80,
'NDC' )
45 fitlabel.SetTextAlign( 12 )
46 fitlabel.SetFillColor( 42 )
47 fitlabel.ReadFile(path.join(path.dirname(__file__),
'fit1_py.py'))
50 gBenchmark.Show(
'fit1' )