[Numpy-discussion] ppgplot 1.3 with numpy 1.3.0

Jun Liu cosman.leo at gmail.com
Mon Jun 21 12:32:37 EDT 2010


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?




More information about the NumPy-Discussion mailing list