title: Python and Scipy programming
body: <p>I'm getting this error message:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Python27/test", line 14, in &lt;module&gt;
      tck = interpolate.bisplrep(X,Y,Z)
    File "C:\Python27\lib\site-packages\scipy\interpolate\fitpack.py", line 850, in bisplrep
      raise TypeError('m &gt;= (kx+1)(ky+1) must hold')
  TypeError: m &gt;= (kx+1)(ky+1) must hold
  </code></pre>
  
  <p>The error says that <code>len(X) = m is &lt;=(kx+1)(ky+1)</code>. How can I solve this? Here's my program:</p>
  
  <pre><code>import scipy
  import math
  import numpy
  from scipy import interpolate
  
  
  x= [1000,2000,3000,4000,5000,6000]
  y= [1000]
  
  Y = numpy.array([[i]*len(x) for i in y])
  X = numpy.array([x for i in y])
  Z = numpy.array([[21284473.74,2574509.71,453334.97,95761.64,30580.45,25580.60]]) 
  
  tck = interpolate.bisplrep(x,y,Z)
  print interpolate.bisplev(3500,1000,tck) 
  </code></pre>