How to convert Cartesian coordinate to polar coordinate in $-180°$ to $+180°$

108 Views Asked by At

enter image description here

I wanted to plot temperature at circumference of a circle. I extracted the data by converting cartesian coordinates into polar coordinates by using ATAN2 function, but the plot is having negative and positive angles and skewed on one side (shown in Figure 1). How can I plot it symmetric with having angle in the range of $-180°$ to $+180°$ (the expected graph is shown in Figure 2). The center of the circle is at $(0,0)$.

1

There are 1 best solutions below

0
On

BTW, I have got the answer. I was using ATAN2(Y,X) but it should have been ATAN2(X,Y).