At the beginning of this chapter, we briefly sketched the flow of data from user creation to its display in a user interface. Having toured matplotlib's architecture, which included taking a side trip to the namespaces and dependency graphs, there is enough context to appreciate the flow of data through the code.
As we trace through our simple line example, remember that we used the
pyplot interface. There are several other ways by which one may use matplotlib. For each of these ways, the code execution flow will be slightly different.
As a refresher, here's our code from
#! /usr/bin/env python3.4 import matplotlib.pyplot as plt def main () -> None: plt.plot([1,2,3,4]) plt.ylabel('some numbers') ...