# to see contents of create_data function, look at the top-most algorithm's code
figure, axes, handles = create_plots(data, baselines)
for i, (ax, y) in enumerate(zip(axes, data)):
    if i == 1:
        half_window = 28
    else:
        half_window = 17
    baseline, params = baseline_fitter.snip(y, half_window, extrapolate_window=20)
    ax.plot(baseline, 'g--')