22from ROOT
import TCanvas, TF1, gSystem, gPad, TLegend, TPaveLabel, kBlack
27DistCanvas =
TCanvas(
"DistCanvas",
"Bessel functions example", 10, 10, 800, 600)
33leg =
TLegend(0.75, 0.7, 0.89, 0.89)
41 jbessel =
TF1(
"J_0",
"ROOT::Math::cyl_bessel_j([0],x)", 0, 10)
50xaxis = JBessel[0].GetXaxis()
56p1 =
TPaveLabel(.0, .90, .0 + .50, .90 + .10,
"Bessel J functions",
"NDC")
75leg2 =
TLegend(0.75, 0.7, 0.89, 0.89)
80 kbessel =
TF1(
"J_0",
"ROOT::Math::cyl_bessel_k([0],x)", 0, 10)
87kxaxis = KBessel[0].GetXaxis()
93p2 =
TPaveLabel(.0, .90, .0 + .50, .90 + .10,
"Bessel K functions",
"NDC")
111leg3 =
TLegend(0.75, 0.7, 0.89, 0.89)
116 ibessel =
TF1(
"J_0",
"ROOT::Math::cyl_bessel_i([0],x)", 0, 10)
124iaxis = iBessel[0].GetXaxis()
130p3 =
TPaveLabel(.0, .90, .0 + .50, .90 + .10,
"Bessel I functions",
"NDC")
148leg4 =
TLegend(0.75, 0.7, 0.89, 0.89)
153 jbessel =
TF1(
"J_0",
"ROOT::Math::sph_bessel([0],x)", 0, 10)
160jaxis = jBessel[0].GetXaxis()
166p4 =
TPaveLabel(.0, .90, .0 + .50, .90 + .10,
"Bessel j functions",
"NDC")
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
This class displays a legend box (TPaveText) containing several legend entries.
A Pave (see TPave) with a text centered in the Pave.