I am trying to graph 3D radiation patterns coming through an antenna.
In the following code I am trying to graph the 3D radiation coming through an antenna, I am trying to graph the values using spherical coordinates, my professor said that all I should need are the theta values to graph in 3 dimensional coordinates.
The theta has values like this:
[1.00000000e+00 9.98573416e-01 9.94282968e-01 9.87199667e-01
9.77394746e-01 9.64950421e-01 9.50024926e-01 9.32749447e-01
9.13313758e-01 8.91897610e-01 8.68740363e-01 8.44043831e-01
8.18050284e-01 7.91006405e-01 7.63150161e-01 7.34725309e-01
7.05976102e-01 6.77126795e-01 6.48410442e-01 6.20011864e-01
…
Desired Output
Since it has imaginary values I am using np.abs() to solve that issue and am already converting the coordinates into cartesian. But I am arriving at a roadblock and am unsure about how I should graph values like this. Any help would be appreciated. I am trying to achieve a graph similar to the one I’ve linked in this post.
Vedant Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.