Hello. As a novice user, I encountered the following problem. I have a table with 3 columns, where I have my experimental data, which I would like to display on the graph. The relationship between the input data is detected using griddata, which is very slow. I would like to replace this interpolation by 2 interpolations with a spline. How can I do that?

>>>> bm=[1,1.5,1.6,1.7,1.8,1.9, 2] >>>> n=1/4 >>>> for j in range(1,7,1): >>>> for i in range(0,100): >>>> b[i]=float(bm[j]*np.sin(i*np.pi/(10))) >>>> int=scipy.interpolate.griddata((data_1,data_2),data_3, (b[i],0.0),method='linear') >>>> h[i]=(b[i]-float(int))*n 

Thanks in advance for the answers!

  • Your question is too general and extensive. Try to break it into several separate questions. In addition, asking such questions, you should specify an example of input data and what you want to get at the output - this will allow those who answer your question to test their solutions - MaxU
  • @MaxU I fixed the question. Thanks for the tip - Jamshid
  • I do not quite understand at what points you want to interpolate ... Explain what is (b[i],0.0) - MaxU
  • This grid with 1 is the only value. The result is a 2-D drawing, since data_2 is basically a constant value, but only for a certain period of time - Jamshid

0