Getting ready

Import the required libraries:

import numpy as np
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec