Import the required libraries. We will introduce the tri package for triangulations:
import numpy as npimport matplotlib.pyplot as pltimport matplotlib.tri as tri