|What is ppgplot|
Ppgplot is a python binding to PGPLOT. It was originally
made by Nick Patavalis, but the location where ppgplot should be (http://ariadne.di.uoa.gr/ppgplot) is dead.
I added some missing PGPLOT bindings. I also wrote a setup.py installer script to make it easier to install.
The documentation for ppgplot can be found here, but i advise to use Kplot, and not ppgplot directly.
All you have to do to install pgplot is download the tarball, extract it, and run 'python setup.py install'.
Example taken from PGDEMO1.F, created by Peter Teuben.
#! /usr/bin/env python # # pgex1: freely taken from PGDEMO1.F # import ppgplot, Numeric import sys # create an array xs=Numeric.array([1.,2.,3.,4.,5.]) ys=Numeric.array([1.,4.,9.,16.,25.]) # creat another array yr = 0.1*Numeric.array(range(0,60)) xr = yr*yr # pgplotting if len(sys.argv) > 1: # if we got an argument use the argument as devicename ppgplot.pgopen(sys.argv) else: ppgplot.pgopen('/xwin') ppgplot.pgenv(0.,10.,0.,20.,0,1) ppgplot.pglab('(x)', '(y)', 'PGPLOT Example 1: y = x\u2') ppgplot.pgpt(xs,ys,9) ppgplot.pgline(xr,yr) ppgplot.pgclos()Result:
Better install script (setup.py)