def get_labels(ticks, data):
    """Reads the phase diagram data and returns the labels that correspond
    to the phases displayed on the phase diagram.

    Parameters
    ----------
    ticks : list
        Phases that are displayed.
    data  : list
        list of dictionaries.

    Returns
    -------
    labels : list
        list of labels.
    """
    labels = []
    for i in range(0, ticks.size):
        val = ticks[i] - 1
        val = int(val)
        label = data[val]['Label']
        labels.append(label)
    return labels
