From http://pyx.sourceforge.net/