TF1 *pdfunc =
new TF1(
"pdf",
"ROOT::Math::normal_pdf(x, [0],[1])",-5,5);
TF1 *cdfunc =
new TF1(
"cdf",
"ROOT::Math::normal_cdf(x, [0],[1])",-5,5);
TF1 *ccdfunc =
new TF1(
"cdf_c",
"ROOT::Math::normal_cdf_c(x, [0])",-5,5);
TF1 *qfunc =
new TF1(
"quantile",
"ROOT::Math::normal_quantile(x, [0])",0,1);
TF1 *cqfunc =
new TF1(
"quantile_c",
"ROOT::Math::normal_quantile_c(x, [0])",0,1);
legend1->
AddEntry(pdfunc,
"normal_pdf",
"l");
legend2->
AddEntry(cdfunc,
"normal_cdf",
"l");
legend2->
AddEntry(ccdfunc,
"normal_cdf_c",
"l");
legend3->
AddEntry(qfunc,
"normal_quantile",
"l");
legend3->
AddEntry(cqfunc,
"normal_quantile_c",
"l");
}
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title Offset is a correction factor with respect to the "s...
virtual void SetLabelSize(Float_t size=0.04)
Set size of axis labels The size is expressed in per cent of the pad width.
virtual void SetTitleSize(Float_t size=0.04)
Set size of axis title The size is expressed in per cent of the pad width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
TAxis * GetYaxis() const
Get y axis of the function.
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 SetNpx(Int_t npx=100)
Set the number of points used to draw the function.
virtual void Draw(Option_t *option="")
Draw this function with its current attributes.
virtual void SetParameters(const Double_t *params)
virtual void SetParameter(Int_t param, Double_t value)
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.