সাহায্য:PGPlot
ডিপথট থেকে
Install pgplot from synaptic.
P-PGPlot
A Python binding to pgplot.
Documentation: http://www.astro.rug.nl/~breddels/python/ppgplot/ppgplot-doc.txt.
Download ppgplot from here, extract, go to the folder and do this:
sudo python setup.py install
The first error will be:
ppgplot.c:22:25: fatal error: arrayobject.h: No such file or directory
To solve this open ppgplot.c and change the line:
#include <arrayobject.h>
to include the full path of arrayobject.h,
#include </usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h>
The second error will be:
ppgplot.c:96:10: error: ‘PyArray_SBYTE’ undeclared (first use in this function)
To solve this, again open ppgplot.c and change all PyArray_SBYTE to PyArray_BYTE.
The 3rd error:
/usr/bin/ld: cannot find -lg2c
For this you have to change the option "-lg2c" to "-lgfortran". Do this by editing the ppgplot.c file again— change
libraries.append("g2c")
to
libraries.append("gfortran")