title: how to interpolate points in a specific interval on a plot formed by loading a txt file in to scipy program?
body: <p>I have a text file with two columns, x and y. I have plotted them using the below program in scipy as shown below.</p>
  
  <pre><code>import matplotlib.pyplot as plt
  
  
  with open("data.txt") as f:
      data = f.read()
  
  data = data.split('\n')
  
  x = [row.split(' ')[0] for row in data]
  y = [row.split(' ')[1] for row in data]
  
  
  fig = plt.figure()
  ax1 = fig.add_subplot(111)
  
  ax1.set_title("Plot B vs H")    
  ax1.set_xlabel('B')
  ax1.set_ylabel('H')
  
  ax1.plot(x,y, c='r', label='the data')
  
  leg = ax1.legend()
  
  plt.show()
  </code></pre>
  
  <p>Now I would like to know how to interpolate several points between <code>x=1</code> and <code>x=5</code> with increment of around 0.1 on the same graph?</p>