Skip to content

Instantly share code, notes, and snippets.

View synapticarbors's full-sized avatar

Joshua Adelman synapticarbors

View GitHub Profile
@synapticarbors
synapticarbors / voronoi.py
Created July 14, 2011 21:00
Subdivide Voronoi Cells
#!/usr/bin/env python
# -----------------------------------------------------------------------------
# Voronoi diagram from a list of points
# Copyright (C) 2011 Nicolas P. Rougier
#
# Distributed under the terms of the BSD License.
# -----------------------------------------------------------------------------
import numpy as np
import matplotlib
import matplotlib.pyplot as plt