I need to show a confidence interval, like in this image:

but I don't know how to do it. I've tried doing lb.fill_between(x, (y1-ci), (y1+ci), color = 'b', alpha = 0.1) but it returns the error: AttributeError: 'list' object has no attribute 'fill_between'.
This is my code:
import matplotlib.pyplot as plt
x = [10, 100, 1000]
y1 = [215103, 22824279.7, 22063128311]
y2 = [211298.5, 21315505.2, 20563930722]
plt.subplot(2, 2, 1)
ci = 1300
#la = plt.plot(x,y,'b*', label = 'normal')
lb = plt.plot(x,y1, '#FA8072', label = 'LI')
lc = plt.plot(x,y2, '#7FFFD4', label = 'LU')
plt.legend(loc = 'upper left')
plt.title("L1-dcache-loads")
plt.xscale("log")
Thanks in advance!


lbis a list. You need toplt.fill_between. Note thaty1-ciwill also give you an errorplt.fill_betweenI get this error:unsupported operand type(s) for -: 'list' and 'int', just like you said. How can I fix this?