Re: [Matplotlib-users] "Piecewise Cubic Hermite Interpolating Polynomial" in python

2009-09-21 Thread rbessa
Chris, regarding the print statements in the function you may want to use something like: total_matches = (xx == x).sum() if total_matches != n: raise ValueError("x values weren't in sorted order") I also have one question: in function "pchip_eval" instead of " t =

Re: [Matplotlib-users] "Piecewise Cubic Hermite Interpolating Polynomial" in python

2009-09-02 Thread Christopher Barker
Chris Michalski wrote: > Thanks for the inputs... perhaps it will provide the impetus for > future postings as well... I think this would be a great addition to scipy.interpolate. I encourage you to massage your code to fit the API and scipy standards and contribute it. -Chris -- Christ

Re: [Matplotlib-users] "Piecewise Cubic Hermite Interpolating Polynomial" in python

2009-08-29 Thread Chris Michalski
Thanks for the inputs... perhaps it will provide the impetus for future postings as well... chris On Aug 29, 2009, at 11:49 AM, John Hunter wrote: > On Sat, Aug 29, 2009 at 1:12 PM, Eric Firing > wrote: > >> This looks interesting. I successfully ran your program by using >> copy >> and

Re: [Matplotlib-users] "Piecewise Cubic Hermite Interpolating Polynomial" in python

2009-08-29 Thread John Hunter
On Sat, Aug 29, 2009 at 1:12 PM, Eric Firing wrote: > This looks interesting.  I successfully ran your program by using copy > and paste to get it into a file, but for the future I certainly > recommend that you attach such a file directly--file attachments > generally work very well these days, b

Re: [Matplotlib-users] "Piecewise Cubic Hermite Interpolating Polynomial" in python

2009-08-29 Thread Eric Firing
Chris Michalski wrote: > > Offered for those who might have the same need – a Python pchip() > equivalent ==> pypchip(). Since I'm not sure how attachments work (or > if they work at all...), I copied the code I used below, followed by a > PNG showing "success": Chris, This looks interestin