Hi,
Is it possible and if so how can I put fit parameters from a TGraph into the TLegend?
Thanks.
Hi,
Is it possible and if so how can I put fit parameters from a TGraph into the TLegend?
Thanks.
Hi,
Yes, it is possible indeed. Try this (fit by pol4):
where getsign() is a function that returns the sign of a value:
char getsign(double a)
{
char thissign;
if (a>=0)
{
thissign='+';
}
else
{
thissign='-';
}
return thissign;
}
why not using the the fit option ?
gStyle->SetOptFit(1);