Getting ready

Import the required libraries. We will introduce the tri package for triangulations:

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