Cartesian to polar coordinates

Hi there,

I have a series a points in Cartesian coordinates (x,y) in a TGraph.
I want to plot those point into a TGraphPolar.
For this, I define Theta = Arctan(y/x) and r = sqrt(x^2+y^2).

Once I get my TGraphPolar, how can I fit the distribution ?
Should I create my own function ? how ?
If I stay in Cartesian coordinates, I simply use the Fit method with the “pol1” (as those point follow a line if Cartesian coordinates).

Thank you very much for your help.

TGrahPolar is graphics only. Fitting is not implemented on it (@moneta ?)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.