Overview of Plots in Matplotlib
Plots in Matplotlib have a hierarchical structure that nests Python objects to create a tree-like structure. Each plot is encapsulated in a Figure
object. This Figure
is the top-level container of the visualization. It can have multiple axes, which are basically individual plots inside this top-level container.
Furthermore, we again find Python objects that control axes, tick marks, legends, titles, text boxes, the grid, and many other objects. All of these objects can be customized.
The two main components of a plot are as follows:
- Figure
The Figure is an outermost container that allows you to draw multiple plots within it. It not only holds the Axes object but also has the ability to configure the Title.
- Axes
The axes are an actual plot, or subplot, depending on whether you want to plot single or multiple visualizations. Its sub-objects include the...