Basic structure of a Matplotlib figure
A basic Matplotlib figure is made up of multiple components common to different plot types. It will be useful to familiarize ourselves with the terminologies, as we will be using them frequently in plotting. To get you up to speed, we have prepared a glossary of these basic objects. For clearer illustration, here is a plot adapted from Matplotlib's official website that nicely highlights the anatomy of a typical Matplotlib figure:
Glossary of objects in a Matplotlib figure
- Figure: A figure is the whole plotting area that contains all plot elements. Multiple subplots may be tiled in grid within one figure.
- Subplot: A subplot is a subregion in a figure that contains all of the relevant data to be displayed on the same axes. We will demonstrate how to create subplots in Chapter 3, Figure Layout and Annotations.
- Axis: An axis measures the value of a point at a certain position. Most plots contain two axes, x (horizontal) and y (vertical). Sometimes, multiple...