## [PyX-user] polyline between points

 [PyX-user] polyline between points From: Wolfgang - 2006-06-01 15:45:21 ```Hi, how can I get a polyline (spline) as connection between points in a line graph? Thanks Wolfgang ```

 [PyX-user] polyline between points From: Wolfgang - 2006-06-01 15:45:21 ```Hi, how can I get a polyline (spline) as connection between points in a line graph? Thanks Wolfgang ```
 Re: [PyX-user] polyline between points From: Alan G Isaac - 2006-06-01 16:12:54 ```On Thu, 01 Jun 2006, Wolfgang apparently wrote:=20 > how can I get a polyline (spline) as connection between=20 > points in a line graph?=20 >>> from scipy import interpolate >>> help(interpolate.splrep) Help on function splrep in module scipy.interpolate.fitpack: splrep(x, y, w=3DNone, xb=3DNone, xe=3DNone, k=3D3, task=3D0, s=3DNone, t= =3DNone, full_output=3D 0, nest=3DNone, per=3D0, quiet=3D1) Find the B-spline representation of 1-D curve. Description: Given the set of data points (x[i], y[i]) determine a smooth spline approximation of degree k on the interval xb <=3D x <=3D=20 xe. The coefficients, c, and the knot points, t, are=20 returned. Easier to install than SciPy is ScientificPython, which also=20 has some interpolations routines. hth, Alan Isaac ```
 Re: [PyX-user] polyline between points From: Michael J Gruber - 2006-06-01 16:46:36 ```Wolfgang venit, vidit, dixit 2006-06-01 17:30: > Hi, > > how can I get a polyline (spline) as connection between points in a line > graph? Do you need a specific type of spline, like b-spline or Bezier, or just some smooth representation? PyX can deform a polygonal path into a smooth one. See the deformer.smoothed() example at: http://pyx.sourceforge.net/examples/drawing2/smoothed.html Cheers, Michael ```
 [PyX-user] Re: polyline between points From: Wolfgang - 2006-06-01 18:28:21 ```Is it possible to use graph.data.file outside of the g.plot to access "x" and "y"? graph.data.file("wood2a.csv",x=1,y=2) Thanks, Wolfgang Michael J Gruber schrieb: > Wolfgang venit, vidit, dixit 2006-06-01 17:30: >> Hi, >> >> how can I get a polyline (spline) as connection between points in a line >> graph? > > Do you need a specific type of spline, like b-spline or Bezier, or just > some smooth representation? PyX can deform a polygonal path into a > smooth one. See the deformer.smoothed() example at: > > http://pyx.sourceforge.net/examples/drawing2/smoothed.html > > Cheers, > Michael > > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 ```
 Re: [PyX-user] polyline between points From: Michael J Gruber - 2006-06-02 13:41:43 ```Wolfgang venit, vidit, dixit 2006-06-01 20:27: > Is it possible to use graph.data.file outside of the g.plot > to access "x" and "y"? > > > graph.data.file("wood2a.csv",x=1,y=2) Save the data in a variable: wood = graph.data.file("wood2a.csv",x=1,y=2) Then wood.columns['x'] is the list of x-values etc. With "zip" you can get one list of 2-tuples from the two lists of x- resp. y-values. Michael ```