Quick contextualisation, I am trying to follow the orientation of a molecule (represented as a rigid object) in respect to the z axis. The molecule is basically shaped as an hexagon, so what i thought was to define 2 vectors: $\vec u$ running from one vertex to the opposite one of the hexagon and a $\vec v $, orthogonal to $\vec u$ . What i do then is simply measuring their angle with the z axis, which i call respectively $\theta$ and $\psi$ and counting the number of occurence of every couple ( $\theta$ , $\psi$ ). With that i fill a 180x180 matrix with the number of occurence of every couple, then divide by the total number of observations. When i plot this matrix i get a typically shaped diamond plot with the probability on the edges showing higher values due to the correlation of the two vectors and the geometrical density of the states (and with this i mean the that the angle of a vector with a fixed axes has a non uniform density distribution).
The specific thing that i'm looking for is to correct for this "geometrical" effect so that when the molecule is freely rotating in respect to the z axis then the 3D plot of the angle probability looks "flat" inside the diamond, or if you want "even".
To better explain, if i was to measure just the probability of occurence of one angle, say $\theta$, i would divide every probability value of $\theta$ by the $sin(\theta)$ to "correct" for the geometrical effect, and than the plot would be evened out (although ofc at 0 you have sin(0)=0 which creates a problem which is still solvable by binning). But if i have two angles i guess a conditional probability is necessary to normalize my distribution since $\theta$ and $\psi$ are not independent, and i can't get my head around what it should be.
Can anyone help by any chance? I attach an image of the angle map that i get and that i would want to flat out:
Edit: After correction i get the map flattened as wanted. The peaks i think are due to the machine calculation of the radicand which is not perfect.


Also, i love you and if you gimme your email and your bank account i'll buy you a beer =P
– user3458909 Aug 17 '18 at 03:55