Hi,
is it possible to draw the same function with changed parameters in the same pad?
E.g. I plot a straight a*x and I want to see the result for 5 different a’s.
Thanks…
Hi,
is it possible to draw the same function with changed parameters in the same pad?
E.g. I plot a straight a*x and I want to see the result for 5 different a’s.
Thanks…
One possible way:
{
f = new TF1("f","[0]*x",-1,1);
f->SetParameter(0,1);
f->DrawClone();
for (Int_t i=2; i<=5; i++) {
f->SetParameter(0,i);
f->DrawClone("same");
}
}