# 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:
        half_window = 30
        num_std = 0.9
    elif i in (2, 3):
        half_window = 8
        num_std = 3.5
    else:
        half_window = 12
        num_std = 1.1
    baseline, params = baseline_fitter.std_distribution(y, half_window=half_window, num_std=num_std)
    ax.plot(baseline, 'g--')