title: how to attach point of plot in for loop without using linspace?
body: <p>I needed to see the image of a sequence, that's why I chose Python, I got in trouble along the way, that I do not use <code>np.linspace</code> , so the points in the loop are not connected, but I needed to points get connected like they do in <code>np.linspace</code> like they are in a line, but I have no idea how to implement this particular sequence.</p>
  <p>the sequence :</p>
  <p>$${a_n} = 1 + \sum_{n=1}^{\infty}\frac{1}{n!}$$<br />
  = 2 + 1/2! + 1/3! +...+1/n!</p>
  <pre><code>y = 1
  fac = 1
  for n in range(80) :
      fac = fac * (n+1)
      y = y +  1 / fac
      plt.plot(n , y , alpha = 0.5 , color = 'red' , linestyle = 'solid' , 
                  linewidth = 2 , marker = '.' , markersize = 2 ,
                  markerfacecolor = 'blue' , markeredgecolor = 'blue' )
  
  plt.ylim([-1,4])
  plt.savefig('Ascending Highly bounded sequence convergence.png')
  
  plt.clf() #clear figure
  </code></pre>
  <p>the result :
  <a href="https://i.stack.imgur.com/uM09m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uM09m.png" alt="enter image description here" /></a></p>
  <p>Any help is appreciated.</p>