spherical-coordinate

Proper conversion between Quaternions and Spherical Rotation Coordinates?

五迷三道 提交于 2021-01-28 07:52:34
问题 I'm learning about more quaternion conversions and I have a question regarding quaternion to spherical rotation conversion code at the following section of this website: http://web.archive.org/web/20041029003853/http://www.j3d.org/matrix_faq/matrfaq_latest.html#Q59 What are angle and sin_angle in this code supposed to be? Angle is never used so I was guessing it's the rotation angle. Is sin_angle supposed to be sin_a? If this was a function returning an array of float with the spherical

Python, Spherical Plot- Color Scaling

放肆的年华 提交于 2020-01-03 02:57:22
问题 I'm pretty new with python. For the past two days I have been trying to figure out how to scale the color of a 3d plot (Antenna Radiation Pattern) with matplotlib. It looks like the scaling works in one of the xyz axis, but not when the scaling goes from the origin (radius). Any help is very appreciated. It's not my code, but i found it very useful. This is the code: - The values ​​are read from an excel document - As you can see I'm trying to play around with this command "colors =plt.cm.jet

Python - Plotting Antenna Radiation Pattern

雨燕双飞 提交于 2019-12-01 12:19:30
问题 This is a code I found and slightly modified. How can I scale the color from the origin and set the axes from the origin for the visualization? I've tried to find information but most of it is for 2d plots. Here I have added two arrays for theta and phi at intervals of 45 degrees and an array of random numbers representing the power of the signal. The plot works but the signals and intervals are not quite correct. My goal here is to just add the axes from the origin and scale the color from

Python - Plotting Antenna Radiation Pattern

杀马特。学长 韩版系。学妹 提交于 2019-12-01 12:14:28
This is a code I found and slightly modified. How can I scale the color from the origin and set the axes from the origin for the visualization? I've tried to find information but most of it is for 2d plots. Here I have added two arrays for theta and phi at intervals of 45 degrees and an array of random numbers representing the power of the signal. The plot works but the signals and intervals are not quite correct. My goal here is to just add the axes from the origin and scale the color from the origin. import pandas as pd import numpy as np import scipy as sci import matplotlib.pyplot as plt