https://heartbeat.fritz.ai/introduction-to-matplotlib-data-visualization-in-python-d9143287ae39
There are two key components in a Plot; namely, Figure and Axes.
two Approaches for creating Plots
Functional Approach: Using the basic matplotlib command, we can easily create a plot. Let’s plot an example using two Numpy arrays x and y :
- Object oriented Interface: This is the best way to create plots. The idea here is to create Figure objects and call methods off it. Let’s create a blank Figure using the .figure() method.