38   TCanvas *DistCanvas = 
new TCanvas(
"DistCanvas", 
"Bessel functions example", 10, 10, 800, 600);
 
   43   gPad->SetFrameFillColor(19);
 
   49   for(
int nu = 0; nu < 
n; nu++)
 
   51      JBessel[nu]= 
new TF1(
"J_0", 
"ROOT::Math::cyl_bessel_j([0],x)", 0, 10);
 
   58   JBessel[0]->TF1::GetXaxis()->
SetTitle(
"x");
 
   69   leg->AddEntry(JBessel[0]->DrawCopy(), 
" J_0(x)", 
"l");
 
   70   leg->AddEntry(JBessel[1]->DrawCopy(
"same"), 
" J_1(x)", 
"l");
 
   71   leg->AddEntry(JBessel[2]->DrawCopy(
"same"), 
" J_2(x)", 
"l");
 
   72   leg->AddEntry(JBessel[3]->DrawCopy(
"same"), 
" J_3(x)", 
"l");
 
   73   leg->AddEntry(JBessel[4]->DrawCopy(
"same"), 
" J_4(x)", 
"l");
 
   81   gPad->SetFrameFillColor(19);
 
   87   for(
int nu = 0; nu < 
n; nu++){
 
   88      KBessel[nu]= 
new TF1(
"J_0", 
"ROOT::Math::cyl_bessel_k([0],x)", 0, 10);
 
   90      KBessel[nu]->
SetTitle(
"Bessel K functions");
 
  106   leg2->
AddEntry(KBessel[0]->DrawCopy(), 
" K_0(x)", 
"l");
 
  107   leg2->
AddEntry(KBessel[1]->DrawCopy(
"same"), 
" K_1(x)", 
"l");
 
  108   leg2->
AddEntry(KBessel[2]->DrawCopy(
"same"), 
" K_2(x)", 
"l");
 
  109   leg2->
AddEntry(KBessel[3]->DrawCopy(
"same"), 
" K_3(x)", 
"l");
 
  110   leg2->
AddEntry(KBessel[4]->DrawCopy(
"same"), 
" K_4(x)", 
"l");
 
  116   gPad->SetFrameFillColor(19);
 
  121   for(
int nu = 0; nu <= 4; nu++){
 
  122      iBessel[nu]= 
new TF1(
"J_0", 
"ROOT::Math::cyl_bessel_i([0],x)", 0, 10);
 
  124      iBessel[nu]->
SetTitle(
"Bessel I functions");
 
  141   leg3->
AddEntry(iBessel[0]->DrawCopy(), 
" I_0", 
"l");
 
  142   leg3->
AddEntry(iBessel[1]->DrawCopy(
"same"), 
" I_1(x)", 
"l");
 
  143   leg3->
AddEntry(iBessel[2]->DrawCopy(
"same"), 
" I_2(x)", 
"l");
 
  144   leg3->
AddEntry(iBessel[3]->DrawCopy(
"same"), 
" I_3(x)", 
"l");
 
  145   leg3->
AddEntry(iBessel[4]->DrawCopy(
"same"), 
" I_4(x)", 
"l");
 
  151   gPad->SetFrameFillColor(19);
 
  156   for(
int nu = 0; nu <= 4; nu++){
 
  157      jBessel[nu]= 
new TF1(
"J_0", 
"ROOT::Math::sph_bessel([0],x)", 0, 10);
 
  159      jBessel[nu]->
SetTitle(
"Bessel j functions");
 
  176   leg4->
AddEntry(jBessel[0]->DrawCopy(), 
" j_0(x)", 
"l");
 
  177   leg4->
AddEntry(jBessel[1]->DrawCopy(
"same"), 
" j_1(x)", 
"l");
 
  178   leg4->
AddEntry(jBessel[2]->DrawCopy(
"same"), 
" j_2(x)", 
"l");
 
  179   leg4->
AddEntry(jBessel[3]->DrawCopy(
"same"), 
" j_3(x)", 
"l");
 
  180   leg4->
AddEntry(jBessel[4]->DrawCopy(
"same"), 
" j_4(x)", 
"l");
 
#define R__LOAD_LIBRARY(LIBRARY)
 
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
 
virtual void SetTitleSize(Float_t size=0.04)
Set size of axis title.
 
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
 
virtual void SetLineStyle(Style_t lstyle)
Set the line style.
 
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
 
virtual void SetLineColor(Color_t lcolor)
Set the line color.
 
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
 
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
 
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
 
virtual void SetTitle(const char *title="")
Set function title if title has the form "fffffff;xxxx;yyyy", it is assumed that the function title i...
 
virtual void SetParameters(const Double_t *params)
 
TAxis * GetXaxis() const
Get x axis of the function.
 
This class displays a legend box (TPaveText) containing several legend entries.
 
TLegendEntry * AddEntry(const TObject *obj, const char *label="", Option_t *option="lpf")
Add a new entry to this legend.
 
virtual void Draw(Option_t *option="")
Draw this legend with its current attributes.
 
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
 
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
 
A Pave (see TPave) with a text centered in the Pave.
 
virtual void Draw(Option_t *option="")
Draw this pavelabel with its current attributes.