Python3, Molecular Dynamics, Mdanalysis, Plotly.
domain['end_atom'].positions[0][2] x = x1 - x0 y = y1 - y0 z = z1 - z0 magnitudes.append([x, y, z]) Alrighty, now let’s take the angle between the two. from numpy import rad2deg angles = [] for i in range(0, len(vectors)): angle = mda.lib.mdamath.angle(dipole_vectors, magnitude_vectors)