def x_pixel_to_coords(x_pixel_loc, axis_info_dict):
    """
    Converts the pixel location on the x axis to coordinates
    :param x_pixel_loc: int, distance in pixels of a single pixel from the left side of the image
    :param axis_info_dict: dict, result of the get_axis_info function
    :return coord_x: tuple with the x and y coordinates of the pixel in same units as input image
    """
    pixel_distance_x = x_pixel_loc - axis_info_dict['pixel_origin'][0]
    coord_x = pixel_distance_x / axis_info_dict['x_scale']
    return coord_x