This document describes how to create stream graphs, which are stacked area graphs, using Python. It discusses two algorithms for calculating the offset (g0) value for each data point to properly stack the graphs. It then describes the pystreamgraph Python package, which implements these algorithms to generate stream graphs from input data, labels, and colors. The graphs are drawn using SVGFig to output SVG files.