matplotlib.pyplot.
stackplot
Draw a stacked area plot.
The data is assumed to be unstacked. Each of the following calls is legal:
stackplot(x, y) # where y is MxN stackplot(x, y1, y2, y3, y4) # where y1, y2, y3, y4, are all 1xNm
Method used to calculate the baseline:
'zero'
'sym'
'wiggle'
'weighted_wiggle'
Labels to assign to each data series.
A list or tuple of colors. These will be cycled through and used to colour the stacked areas.
All other keyword arguments are passed to Axes.fill_between().
Axes.fill_between()
PolyCollection
A list of PolyCollection instances, one for each element in the stacked area plot.