October 2017
Intermediate to advanced
532 pages
16h 10m
English
Matplotlib provides two distinct interfaces for users to develop plots with. The stateful interface makes all of its calls directly with the pyplot module. This interface is called stateful because matplotlib implicitly keeps track of the current state of the plotting environment. Whenever a plot is created in the stateful interface, matplotlib finds the current Figure or current Axes and makes changes to it. This approach is fine to plot a few things quickly but can become unwieldy when dealing with multiple Figures and Axes.
Matplotlib also offers a stateless, or object-oriented, interface in which you explicitly use variables that reference specific plotting objects. Each variable can then be used to ...
Read now
Unlock full access