Skip to content

Instantly share code, notes, and snippets.

View potatochip's full-sized avatar

Aaron Mangum potatochip

  • San Francisco, CA
View GitHub Profile
@potatochip
potatochip / mpl_cfaces.py
Created February 4, 2016 21:03 — forked from aflaxman/mpl_cfaces.py
Chernoff Faces in Python with Matplotlib
from pylab import *
def cface(ax, x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15,x16,x17,x18):
# x1 = height of upper face
# x2 = overlap of lower face
# x3 = half of vertical size of face
# x4 = width of upper face
# x5 = width of lower face
# x6 = length of nose
# x7 = vertical position of mouth