In this recipe, we will learn how to customize axis labels, ticklabels, plots, and figure titles. For some of these customizations, we will set the plt.rcParams default parameters. However, these settings will be active and apply for all the plots in the session.
Customizing labels and titles
Getting ready
Let's import the required libraries and set up plt.rcParams(), which is also required for this recipe. These settings will be applicable to all the plots drawn in this session:
import matplotlib.pyplot as plt
import numpy as np
plt.rcParams['figure.titlesize'] = 15
plt.rcParams['legend.fontsize'] = 12
plt.rcParams['axes.labelsize'] = 12
plt.rcParams['axes.labelweight'] = 'bold...