第二章绘制堆积面积图
使用stackplot()绘制堆积面积图1.使用stackplot()函数绘制由3条折线及下方填充区域的堆积面积图,代码如下:import numpy as npimport matplotlib.pyplot as pltimport matplotlib as mplx = np.arange(6)y1 = np.array([1,4,3,5,6,7])y2 = np.array([1,3,4,2,7,6])y3 = np.array([3,4,3,6,5,5])plt.stackpl