PyX is a Python package for the creation of
PostScript and PDF files. It combines an
abstraction of the PostScript drawing model with a
TeX/LaTeX interface. Complex tasks like 2D and 3D
plots in publication-ready quality are built out
of these primitives.