PyFig

The xfig vectorial plotting program works on an ASCII simple file (*.fig) which describes the objects that comprises a figure. There also exists a program called fig2dev that is able to convert the *.fig files to a lot of other graphic formats such as eps, png, gif, jpeg, latex, ...

The purpose of this project is to develop a python module which implements an interface to write fig files in a simple manner. One simple manner is with a mouse as the xfig does. But the interface from a programming language allows the automatic creation of fig files, for instance, it could build a graph with the results of a computation.

The selection of the python programming language attends to the preferences of the authors but it provides a lot of features that make it ideal for the task at hand. The (six) objects that appear in a fig file should have their counterpart as python objects. The programming with these low level objects is not very friendly so a second layer should be done to make easier the creation of the most common objects.

The last release is available from the sourceforge project page

SourceForge.net Logo