set_facecolor () method in the axes module is used to change or set the background color of the plot. It is used to set the face color of the figure or we can say the axes color of the plot. Pass the argument as a color name that you want to set. color: specify the name of the color you want to set.How to view all colormaps available in Matplotlib?
plt.colormaps () returns a list of all registered colormaps. From the docs: matplotlib.pyplot.colormaps () Matplotlib provides a number of colormaps, and others can be added using register_cmap (). This function documents the built-in colormaps, and will also return a list of all registered colormaps if called.