# 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:
        width_scale = 0.3
        half_window = 40
    else:
        width_scale = 0.12
        half_window = 30
    baseline, params = baseline_fitter.ria(
        y, half_window=half_window, width_scale=width_scale, extrapolate_window=20
    )
    ax.plot(baseline, 'g--')