Import the required libraries:
import numpy as npimport matplotlib.pyplot as pltimport matplotlib.gridspec as gridspec