Some functions for computing Voronoi diagrams for points in the plane for metrics other than the Euclidean metric.
voronoi_l1
creates Voronoi cells (polygons) for a set of pointsvoronoi_grid
is for displaying a Voronoi diagram as an image.points
array that isscipy.spatial.distance.cdist
voronoi_grid
requires SciPy.Demonstration code is in examples/voronoi_demo.py
. When that file
is run, it generates these plots of the result of voronoi_l1
and
voronoi_grid
applied to a random set of points: