def METHOD_NAME(self, x, y):
    """Returns the data space coordinates of the given x and y.
    Takes into account orientation of the plot and the axis setting.
    """
    plot = self.component
    if plot.orientation == "h":
        index = plot.x_mapper.map_data(x)
        value = plot.y_mapper.map_data(y)
    else:
        index = plot.y_mapper.map_data(y)
        value = plot.x_mapper.map_data(x)
    return index, value