One nice thing about matplotlib is that it allows us to tweak every single element of a plot. We will see some of the common customizations that you will always do when working with matplotlib when performing data analysis.
First, let's generate some data to work on using the following lines of code:
# Generating data
x = np.linspace(-np.pi, np.pi, 200)
sine, cosine = np.sin(x), np.cos(x)
We will now look into each customization feature in matplotlib.