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 --

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 Firingefir...@hawaii.edu wrote: This looks interesting. I successfully ran your program by using