Wouldn't it be interesting to know how to generate multiple plots in a single figure? Well, let's get started with that.
Generating multiple plots in a single figure
Getting ready
Start Jupyter and run the following three commands in an execution cell:
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
How to do it…
Run the following commands in a Jupyter cell:
plt.figure(figsize=(6,6))
xvalues = np.linspace(-2, 2, 100)
plt.subplot(2, 2, 1)
yvalues = xvalues
plt.plot(xvalues, yvalues, color='blue')
plt.xlabel('$x$')
plt.ylabel...