title: running matplotlib in jupyter notebook but getting error as <Figure size 432x288 with 0 Axes>
body: <p>I'm running code  in jupyter notebook but not getting graph instead a msg saying &lt;Figure size 432x288 with 0 Axes&gt;</p>
  <pre><code>import random
  from itertools import count
  import pandas as pd
  import matplotlib.pyplot as plt
  from matplotlib.animation import FuncAnimation
  plt.style.use('fivethirtyeight')
  
  
  x_vals=[]
  y_vals=[]
  index=count()
  
  def animate(i):
      x_vals(next(index))
      y_vals(random.randint(0,5))
      
      plt.plot(x_vals, y_vals)
  
  ani=FuncAnimation(plt.gcf(), animate, interval=1000)
  plt.tight_layout()
  plt.show()
  </code></pre>