import numpy as np
import matplotlib.pyplot as plt
from matplotlib import rcParams
from matplotlib.pyplot import MultipleLocator
a = np.arange(1, 16).reshape(15).tolist()
b = np.arange(1, 16).reshape(15).tolist()
c = np.arange(2, 32, 2).reshape(15).tolist()
fig = plt.figure(figsize=(6, 3))
ax = fig.add_subplot(111)
ax.plot(a, b, color='black')
plt.fill_between(a, b)
ax.plot(a, c)
plt.fill_between(a, b, c, hatch='/.', facecolor='green', zorder=2)
plt.grid(axis="y", which='both', zorder=1)
plt.show()
【1】知乎文章