fig, ax = plt.subplots(figsize=(10, 6))
Here is what the above code is Doing:
1. Create a figure object, fig, and an axis object, ax.
2. The figsize argument is a tuple of the width and height of the figure in inches.
3. The dpi argument is the dots-per-inch (pixel per inch). It’s set to 100 by default.
4. The facecolor argument is the background color of the figure.
5. The edgecolor argument is the color of the edge around the figure.