I came across this question on StackOverflow about Satellite Trajectory plot. In the code mentioned in the question, the user takes only the Azimuth & Elevation angles (radians) & converts them into cartesian (x, y) coordinates & plots the Satellite trajectory onto a polar plot.
However, to convert from Spherical to Cartesian coordinates, one needs Range, Azimuth & Elevation. But the formula used in the code is
$$ x = \frac{(\pi/2) - Elevation} {(\pi/2)*cos(Azimuth - (\pi/2))} $$
$$ y = \frac{Elevation - (\pi/2)} {(\pi/2)*sin(Azimuth - (\pi/2))} $$
How was the OP able to draw a satellite ground track using only Azimuth & Elevation? How to arrive at the above equations from
$$ x = r*cos(Elevation)*cos(Azimuth) $$
$$ y = r*cos(Elevation)*sin(Azimuth) $$
$$ z = r*sin(Elevation) $$