def calc_theta(bins, axis_range):
    '\n    Convert a bin number to a direction in radians.\n\n    Works for NumPy arrays of bin numbers, returning\n    an array of directions.\n    '
    return np.exp(((((2.0 * np.pi) * bins) / axis_range) * 1j))
Convert a bin number to a direction in radians.

Works for NumPy arrays of bin numbers, returning
an array of directions.
def calc_theta(bins, axis_range):
    '\n    Convert a bin number to a direction in radians.\n\n    Works for NumPy arrays of bin numbers, returning\n    an array of directions.\n    '
    return np.exp(((((2.0 * np.pi) * bins) / axis_range) * 1j))