21 TF1 *flaplace =
new TF1(
"flaplace",
"TMath::LaplaceDist(x, [0], [1])", -10, 10);
40 legend1->
AddEntry(f2,
"alpha=0 beta=2",
"l");
41 legend1->
AddEntry(f3,
"alpha=2 beta=1",
"l");
42 legend1->
AddEntry(f4,
"alpha=2 beta=2",
"l");
47 TF1 *flaplacei=
new TF1(
"flaplacei",
"TMath::LaplaceDistI(x, [0], [1])", -10, 10);
67 legend2->
AddEntry(f2,
"alpha=0 beta=2",
"l");
68 legend2->
AddEntry(f3,
"alpha=2 beta=1",
"l");
69 legend2->
AddEntry(f4,
"alpha=2 beta=2",
"l");
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual TF1 * DrawCopy(Option_t *option="") const
Draw a copy of this function with its current attributes.
virtual void SetParameters(const Double_t *params)
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.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual void SetGrid(Int_t valuex=1, Int_t valuey=1)=0