[Numpy-discussion] reshape/resize and array extension

2012-06-07 Thread Pierre Barthelemy
Hi everyone, I am making a program to realize some "live" data analysis. I progressively take the data, and write them in a file as a single column. If i take 2D data, this would give: data= X Y Z 0 0 1 1 0 2 2 0 3 0 1 1 1 1 2 2 1 3 0 2 1 1 2 1 2 2 1 To plot these data, i need first to reshape th

[Numpy-discussion] Numpy fitting

2012-03-01 Thread Pierre Barthelemy
Dear all, i am writing a program for data analysis. One of the functions of this program gives the possibility to fit the functions. I followed the recipe described in : http://www.scipy.org/Cookbook/FittingData under the section "Simplifying the syntax"

[Numpy-discussion] Numpy fitting

2012-03-01 Thread Pierre Barthelemy
Dear all, i am writing a program for data analysis. One of the functions of this program gives the possibility to fit the functions. I therefore use the recipe described in : http://www.scipy.org/Cookbook/FittingData under the section "Simplifying the syn

[Numpy-discussion] Numpy interpolate: cut through 2D matrix

2012-03-01 Thread Pierre Barthelemy
Hello, for a data analysis tool i am programming, i need to plot a cut through a 2D graph. I then have a 2D array, and the indices start=(start_x,start_y) and stop=(stop_x,stop_y) that are the position of the starting point and stop point of the cut. The code i programmed is placed on the bottom.