def get_indices(plot, speckeys):
    """
    Returns indices of spectra we want to take a closer look at

    Parameters
    ----------
    plot : instance of InteractivePlot class
        the interactive plot
    speckeys : list
        a list of all the indices contained within the current block

    """

    subplots = plot.subplots
    check_spec = speckeys[subplots]

    return check_spec