TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a script from others that uses PyX - Python graphics package to generate graphics for LaTex.

Quoted from http://pyx.sourceforge.net/

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.

  1. However its latest news is back at 2007. I was wondering if PyX is still active?
  2. If it is one of the best ways to generate graphics for LaTex?

Thanks and regards!

share|improve this question
I am using matplotlib for most of my Python scientific graphics. It has nowadays a fairly good Latex interface – Danie Els May 12 '11 at 2:05

One of the more versatile packages for creating all kinds of graphs is PGF/TikZ. There is extensive documentation for it available in the PDF manual (note that this is for the CVS version, not for the last release).

I doubt it's very useful for 3D graphics but a special syntax for data visualization (like here) is currently under development and will be shipped with the next version.

share|improve this answer

In case you need the interaction with Python, it might be worthy to have a look at PiScript. AFAIK, the author (Bill Casselman) uses this for the creation of the covers of AMS Notices.

Here's an example of a figure produced using PiScript:

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.