for i in range(50):
    _sorted = np.sort(points[(i), :])
layers[(i), :] = _sorted[pcts]
colors = ['blue', 'green', 'red', 'green', 'blue']
for i in range(5):
    plt.fill_between(locations, layers[:, (i)], layers[:, (i + 1)], color=
        colors[i])
plt.show()
Plotting stochastic processes in Python