def _update_data(params):
    sfreq = params['info']['sfreq']
    start = int(params['t_start'] * sfreq)
    end = int((params['t_start'] + params['duration']) * sfreq)
    params['data'] = params['orig_data'][:, start:end]
    params['times'] = params['raw'].times[start:end]
Function for preparing the data on horizontal shift of the viewport.
dataset/ETHPy150Open mne-tools/mne-python/mne/viz/ica.py/_update_data