scales = np.arange(2, 40)
# 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:
        poly_order = i + 1
        symmetric = False
    else:
        poly_order = 1
        symmetric = True
    if i in (0, 4):
        min_length = 3
    else:
        min_length = 20
    baseline, params = baseline_fitter.cwt_br(
        y, poly_order=poly_order, scales=scales, min_length=min_length,
        symmetric=symmetric, num_std=0.5
    )
    ax.plot(baseline, 'g--')