# 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:
        symmetric_weights = True
    else:
        symmetric_weights = False
    if i == 1:
        fraction = 0.55
        scale = 1.5  # reduce scale to lower the effect of grouped peaks
    else:
        fraction = 0.35
        scale = 3
    if i in (0, 4):
        poly_order = 1
    else:
        poly_order = 2

    baseline, params = baseline_fitter.loess(
        y, poly_order=poly_order, scale=scale, fraction=fraction,
        symmetric_weights=symmetric_weights
    )
    ax.plot(baseline, 'g--')