12 #if defined(__CINT__) && !defined(__MAKECINT__)
36 TCanvas *Canvas =
new TCanvas(
"DistCanvas",
"Legendre polynomials example", 10, 10, 750, 600);
43 for(
int nu = 0; nu <= 4; nu++)
45 L[nu]=
new TF1(
"L_0",
"ROOT::Math::legendre([0],x)", -1, 1);
53 L[0]->
SetTitle(
"Legendre polynomials");
54 leg->
AddEntry(L[0]->DrawCopy(),
" L_{0}(x)",
"l");
55 leg->
AddEntry(L[1]->DrawCopy(
"same"),
" L_{1}(x)",
"l");
56 leg->
AddEntry(L[2]->DrawCopy(
"same"),
" L_{2}(x)",
"l");
57 leg->
AddEntry(L[3]->DrawCopy(
"same"),
" L_{3}(x)",
"l");
58 leg->
AddEntry(L[4]->DrawCopy(
"same"),
" L_{4}(x)",
"l");
virtual void SetLineWidth(Width_t lwidth)
virtual void SetParameters(const Double_t *params)
This class displays a legend box (TPaveText) containing several legend entries.
virtual void Draw(Option_t *option="")
Draw this legend with its current attributes.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
virtual int Load(const char *module, const char *entry="", Bool_t system=kFALSE)
Load a shared library.
virtual void SetMinimum(Double_t minimum=-1111)
Set the minimum value along Y for this function In case the function is already drawn, set also the minimum in the helper histogram.
virtual void SetGrid(Int_t valuex=1, Int_t valuey=1)
virtual int CompileMacro(const char *filename, Option_t *opt="", const char *library_name="", const char *build_dir="", UInt_t dirmode=0)
This method compiles and loads a shared library containing the code from the file "filename"...
virtual void SetLineColor(Color_t lcolor)
R__EXTERN TSystem * gSystem
virtual void SetFillColor(Color_t fcolor)
virtual void SetMaximum(Double_t maximum=-1111)
Set the maximum value along Y for this function In case the function is already drawn, set also the maximum in the helper histogram.
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...
TLegendEntry * AddEntry(const TObject *obj, const char *label="", Option_t *option="lpf")
Add a new entry to this legend.
virtual void SetLineStyle(Style_t lstyle)
void SetFrameFillColor(Color_t color=1)