I'm attempting to fill in an area enclosed by four curves but can't seem to get the fill I want: I'm using fill_between()
but that can only handle two lines at most. Here's the code I currently have:
fig,ax = plt.subplots()
x = np.arange(start = -80,stop = 80,step = 1e-3)
yArc = np.sqrt(80**2 - x**2)
yLL = -2*x - 10
yRL = 2*x - 10
yTop = 0*x + 150
ax.fill_between(x,yArc,yTop,where = yArc<yTop,color = 'red',alpha = 0.8)
plt.show()
Here's the output:
Note: In case you can't see, there is a horizontal line just about where the free-throw line is.