Creating a figure and axis in Matplotlib
In Matplotlib, the figure works as a container that contains all the objects which represent axes, graphics, text, and labels.
The axis in Matplotlib is a bounding box with ticks & labels which will contain the plot elements that build up our visualization.
Generally, in Matplotlib, “fig” is used to refer a figure and “ax” is used to refer axes.
Matplotlib - Python Implementation