How can I shade an area under a curve between two lines in matplotlib / pandas?
<p>I'm trying to recreate this chart, more or less, using matplotlib: </p>

<p><a href="https://i.stack.imgur.com/s0jch.png" rel="noreferrer"><img src="https://i.stack.imgur.com/s0jch.png" alt="enter image description here"></a></p>

<p>Except in mine the center is 100 and the standard deviation is 16 (like IQ). This is what I have so far: </p>

<pre><code>import numpy as np
import matplotlib.pyplot as plt
from scipy import stats as stats
x = np.linspace(50,150,100)
iq = stats.norm.pdf(x, 100, 16)
plt.plot(x,iq)
</code></pre>

<p>That generates a normal curve like this: </p>

<p><a href="https://i.stack.imgur.com/8diXC.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8diXC.png" alt="enter image description here"></a></p>

<p>So far so good. But I'm at a loss for how to shade areas under the curve. </p>