Create and draw a polar graph with PI axis using a TF1.
void graphpolar3()
{
TF1 * fp1 =
new TF1(
"fplot",
"cos(x)",rmin,rmax);
for (
Int_t ipt = 0; ipt < 1000; ipt++) {
r[ipt] = ipt*(rmax-rmin)/1000+rmin;
theta[ipt] = fp1->
Eval(r[ipt]);
}
}
- Author
- Olivier Couet
Definition in file graphpolar3.C.