docs: def graph(data):
      """Draws graph of rating vs episode number"""
      title = data['name'] + ' (' + data['rating'] + ') '
      plt.title(title)
      plt.xlabel('Episode Number')
      plt.ylabel('Ratings')
      rf,ef=graphdata(data)
      col=['red', 'green' , 'orange']
      for i in range(len(rf)):
          x,y=ef[i],rf[i]
          k = i + 1
          plt.plot(x, y,color=col[i%3])
      x1, x2, y1, y2 = plt.axis()
      y2 = 10
      if y1 > 7:
          y1 = 7
      plt.axis([x1, x2, y1, y2])
      plt.show()