Matplotlib 3.0 Cookbook
上QQ阅读APP看书,第一时间看更新

Stacked plot

A stacked plot represents the area under the line plot, and multiple line plots are stacked one over the other. It is used to provide a visualization of the cumulative effect of multiple variables being plotted on the y axis.

We will plot the number of product defects by a defect reason code, for three months stacked together to give a cumulative picture for the quarter.