Create a Harris Matrix from archaeological stratigraphy data using Python and Graphviz. See the Harris Matrix Data Package https://codeberg.org/steko/harris-matrix-data-package for a revised and updated version https://www.iosa.it/2008/08/27/harris-matrix-with-graphviz-a-draft-application-with-python/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
270 B

#! /usr/bin/env python
# -*- coding: utf-8 -*-
# harris.py © 2007 Stefano Costa
from harrisDb import *
from harrisGv import *
a = DbReader('example/matrix.db','relations')
b = a.returnList()
c = Db2Gv(b)
d = basicGraph(c.elist)
d.draw('matrix.png', format="png")