Skip to content

Instantly share code, notes, and snippets.

@eat-
eat- / radial_demo.py
Created February 27, 2011 21:44
Simple demonstration of radial dendrogram
from numpy import r_, ones, pi, sort
from numpy.random import rand
from radial_grouper import tree, pre_order, post_order
from radial_visualizer import simple_link
from pylab import axis, figure, plot, subplot
# ToDo: create proper documentation
def _s(sp, t, o):
subplot(sp)
t.traverse(simple_link, order= o)