Getting ready

Import the required libraries. Two new packages, Path and patches, will be introduced here:

import matplotlib.pyplot as plt
from matplotlib.path import Path
import matplotlib.patches as patches