title: Numpy Linespace Not Working
body: <p>So I interpolated from data files and got a function. Later, I used linspace to create x values which I would then plug in to the function. However, when I did so, the x-range expanded to 100. I don't understand why it is doing this. How should I fix this?<a href="https://i.stack.imgur.com/41kzK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/41kzK.png" alt="enter image description here"></a></p>
  
  <pre><code>x = np.loadtxt("/Users/shawn/Desktop/VDFDensityfinalz.dat", unpack = True)
  y = np.loadtxt("/Users/shawn/Desktop/VDFDensityfinalshift.dat", unpack = True)
  f = interp1d(x, y, kind = 'cubic')
  xnew = np.linspace(0.0414, 1.0414,100)
  plt.plot(f(xnew))
  </code></pre>