I have an updated version of ppgplot.c as part of a larger astronomical package. You can get the ppgplot code here:
http://github.com/scottransom/presto/tree/master/python/ppgplot_src/ Scott On Monday, June 21, 2010 12:32:37 pm Jun Liu wrote: > follow http://www.dur.ac.uk/physics.astrolab/ppgplot.html, I installed > pgplot with gfortran and ppgplot (ported to numpy), everything seems > Ok. But when I tried a simple test, it raise an unplesent warning: > DeprecationWarning: PyArray_As1D: use PyArray_AsCArray > Here is my test code: > > import ppgplot > import numpy as np > x=np.arange(0,3,0.04) > y = x**2 > ppgplot.pgbeg() > ppgplot.pgenv(0,4,0,10,0,0) > ppgplot.pgline(x,y) > ppgplot.pgend() > > ps: I use Ubuntu 10.04, and python 2.6.5 without numarray package > installed. And ppgplot works well with Numeric 24.2 > > Could anyone help to fix this problem? > > _______________________________________________ > NumPy-Discussion mailing list > [email protected] > http://mail.scipy.org/mailman/listinfo/numpy-discussion -- Scott M. Ransom Address: NRAO Phone: (434) 296-0320 520 Edgemont Rd. email: [email protected] Charlottesville, VA 22903 USA GPG Fingerprint: 06A9 9553 78BE 16DB 407B FFCA 9BFA B6FF FFD3 2989 _______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
