https://github.com/root-project/root
Raw File
Tip revision: 37e98489b46e48f2dfacc43251f83d5b8ac1c55e authored by Fons Rademakers on 14 March 2014, 15:21:52 UTC
make version v5-34-18.
Tip revision: 37e9848
fit1_py.py

   gROOT.Reset()
   c1 = TCanvas( 'c1', 'The Fit Canvas' )
   c1.SetGridx()
   c1.SetGridy()

   fill = TFile( 'fillrandom.root' )
   fill.ls()
   sqroot.Print()

   h1f.Fit( 'sqroot' )

   fitlabel = TPaveText( 0.6, 0.3, 0.9, 0.80, 'NDC' )
   fitlabel.SetTextAlign( 12 )
   fitlabel.SetFillColor( 42 )
   fitlabel.ReadFile( 'fit1_py.py' )
   fitlabel.Draw()

back to top