matplotlib

mpl_toolkits.mplot3d.art3d.norm_text_angle

mpl_toolkits.mplot3d.art3d.norm_text_angle(a)

Return angle between -90 and +90