title: Appearing animation for spiral matrix
body: <p>I'm trying to make a spiral matrix, but when I tried to make the numbers appear one by one, it only shows the lines one by one.</p>
  <p>Please help!</p>
  <pre><code>import numpy as np
  from time import sleep
  
  n = int(input(&quot;Width : &quot;))
  k = int(input(&quot;Space : &quot;))
  
  a = np.zeros((n,n))
  print(a/n)
  
  i = 0 #i line
  j = 0 #j column
  it = -1 #it upper line
  id = n #id downer line
  jt = -1 #jt left column
  jp = n #jp right column
  x = k #x starter number
  
  while j &lt; jp:
  
      while j &lt; jp:
          a[i][j] = x
          x += k
          j +=1
      it +=1
      i=it+1
      j=jp-1
  
      while i&lt; id:
          a[i][j] = x
          x += k
          i +=1
      jp -=1
      j=jp-1
      i=id-1
  
      while j &gt; jt:
          a[i][j] = x
          x += k
          j -=1
      id -=1
      i=id-1
      j=jt+1
  
      while i&gt;it:
          a[i][j] = x
          x += k    
          i -=1
      jt +=1
      i=it+1
      j=jt+1
  
  for x in a:
      print(x)
      sleep(0.1)
  </code></pre>
  <p>Here's an example:</p>
  <p><a href="https://i.stack.imgur.com/0Kz0F.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0Kz0F.jpg" alt="Here's an example" /></a></p>
  <p>Each number is suppose to appear one by one.</p>
  <p>(I'm just putting this here so I can post this since I need to add more details)</p>