# 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 = 12
    elif i == 3:
        max_iter = 11
    else:
        max_iter = 100

    baseline, params = baseline_fitter.corner_cutting(y, max_iter=max_iter)
    ax.plot(baseline, 'g--')