def _y_axis_labels(subgraph_height, data, min_bound, max_bound):
    """
  Provides the labels for the y-axis. This is a mapping of the position it
  should be drawn at to its text.
  """
    y_axis_labels = {(2): data.y_axis_label(max_bound), (subgraph_height - 
        1): data.y_axis_label(min_bound)}
    ticks = (subgraph_height - 5) // 2
    for i in range(ticks):
        row = subgraph_height - 2 * i - 5
        if subgraph_height % 2 == 0 and i >= ticks // 2:
            row -= 1
        val = (max_bound - min_bound) * (subgraph_height - row - 3) // (
            subgraph_height - 3)
        if val not in (min_bound, max_bound):
            y_axis_labels[row + 2] = data.y_axis_label(val)
    return y_axis_labels
