# 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 = 50
    else:
        half_window = 20
    baseline, params = baseline_fitter.jbcd(
        y, half_window, gamma=1, beta_mult=1.05, gamma_mult=0.95
    )
    ax.plot(baseline, 'g--')