# 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:
        max_iter = 5
        half_window = 6
    elif i == 3:
        max_iter = 3
        half_window = 3
    else:
        max_iter = 3
        half_window = 10
    baseline, params = baseline_fitter.peak_filling(
        y, half_window=half_window, max_iter=max_iter, lam_smooth=1e0
    )
    ax.plot(baseline, 'g--')