Pyx is a python 2 module for generating encapsulated postscript figures using an abstraction of postscript and tex.
this package contains the manual for pyx in pdf and html formats and examples.
see the python3-pyx package for a version of pyx compatible with python 3.