19CPol = ROOT.TCanvas(
"CPol",
"TGraphPolar Examples", 500, 500)
26fp1 = ROOT.TF1(
"fplot",
"cos(x)", rmin, rmax)
27for ipt
in range(1000):
28 r = np.append(r, ipt * (rmax - rmin) / 1000 + rmin)
29 theta = np.append(theta, fp1.Eval(r[ipt]))
31grP1 = ROOT.TGraphPolar(1000, r, theta)