Python, Matplotlib, Animation, Statistics, Code.
no_of_steps + 2 anim = animation.FuncAnimation(fig, update_all, N, fargs =(temp1, line1, point1, pnt1,temp2, line2, point2, pnt2,temp3, line3, point3, pnt3,temp4, line4, point4, pnt4),interval=150, repeat=False) #If you want to view the graph, comment out the anim save line and vice versa.This is