Getting ready

Let's import the required libraries:

import numpy as np
import matplotlib.pylab as plt
from matplotlib.ticker import FuncFormatter