# 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 == 4:
        min_fwhm = y.shape[0]  # ensure it doesn't try to fill in negative peaks
    else:
        min_fwhm = None
    baseline, params = baseline_fitter.fastchrom(
        y, half_window=12, threshold=1, min_fwhm=min_fwhm
    )
    ax.plot(baseline, 'g--')