Using this answer, I can create a bounded Voronoi diagram (credit to @Flabetvibes for this code):
import matplotlib.pyplot as plt import numpy as np import sc