Manual for Package pgfplots
2D/3D Plots in LATeX, Version 1.18.1
http://sourceforge.net/projects/pgfplots
Import/Export From Other Formats
8.4Generate PGFPlots Graphics Within Python
Mario Orne DÍAZ ANADÓN contributed a small python script pgfplots.py which provides a simple interface to generate pgfplots figures from within python. It can be found in the pgfplots installation directory, in pgfplots/scripts/pgfplots/pgfplots.py; documentation can be found in the file.